/**
 * Aptotema Homepage Editorial Sections
 * High fashion, minimalist magazine aesthetics
 */

/* 1. Hero Section */
.apt-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--apt-site-header-total-height, 142px));
  min-height: calc(100vh - var(--apt-site-header-total-height, 142px));
  height: calc(100dvh - var(--apt-site-header-total-height, 142px));
  min-height: calc(100dvh - var(--apt-site-header-total-height, 142px));
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--apt-color-bg-secondary);
  overflow: hidden;
}

/* Transparent Header Support on Front-Page */
#masthead.apt-header--transparent ~ #main .apt-hero,
:root:has(.apt-header--transparent) .apt-hero {
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
}

.apt-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.apt-hero__media img,
.apt-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.apt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
}

.apt-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  padding: 0 var(--apt-gutter);
  margin-top: auto;
  margin-bottom: 40px;
}

.apt-hero__eyebrow {
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xs);
  font-weight: 500;
  letter-spacing: var(--apt-tracking-widest);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.apt-hero__title {
  font-family: var(--apt-font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.apt-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.apt-hero__actions .apt-btn {
  border-color: #FFFFFF;
}

.apt-hero__actions .apt-btn--primary {
  background-color: #FFFFFF;
  color: #000000;
}

.apt-hero__actions .apt-btn--primary:hover {
  background-color: transparent;
  color: #FFFFFF;
}

/* 2. Editorial Split Section (Storytelling) */
.apt-editorial-split {
  padding: 100px 0;
  background-color: var(--apt-color-bg);
}

.apt-editorial-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.apt-editorial-split--reverse .apt-editorial-split__grid {
  direction: rtl;
}

.apt-editorial-split--reverse .apt-editorial-split__content,
.apt-editorial-split--reverse .apt-editorial-split__media {
  direction: ltr;
}

.apt-editorial-split__media {
  position: relative;
  overflow: hidden;
}

.apt-editorial-split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--apt-ease-editorial);
}

.apt-editorial-split__media:hover img {
  transform: scale(1.03);
}

.apt-editorial-split__content {
  max-width: 520px;
}

.apt-editorial-split__eyebrow {
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xxs);
  font-weight: 600;
  letter-spacing: var(--apt-tracking-widest);
  text-transform: uppercase;
  color: var(--apt-color-text-muted);
  margin-bottom: 16px;
}

.apt-editorial-split__title {
  font-family: var(--apt-font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.apt-editorial-split__text {
  color: var(--apt-color-text-muted);
  font-size: var(--apt-text-md);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* 3. Curated Collections Grid (Seamless Full-Width 2x2 Banners - Anine Bing 1:1) */
.apt-curated-collections {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.apt-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.apt-section-header__title {
  font-family: var(--apt-font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: var(--apt-tracking-wide);
  margin-bottom: 8px;
}

.apt-section-header__subtitle {
  font-size: var(--apt-text-sm);
  color: var(--apt-color-text-muted);
  letter-spacing: var(--apt-tracking-wide);
}

.apt-collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

.apt-collection-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.apt-collection-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: var(--apt-collections-aspect-ratio, 4 / 5);
  height: var(--apt-collections-height, auto);
  min-height: 0;
  overflow: hidden;
  background-color: var(--apt-color-bg-secondary);
}

.apt-collection-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--apt-ease-editorial);
}

.apt-collection-card:hover .apt-collection-card__image-wrap img {
  transform: scale(1.03);
}

.apt-collection-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.apt-collection-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #000000;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 28px;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.apt-collection-card:hover .apt-collection-card__btn {
  background-color: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* 4. Editorial Lookbook Feed (Seamless Edge-to-Edge) */
.apt-lookbook-section {
  padding: 80px 0 0;
  background-color: var(--apt-color-bg);
}

.apt-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 !important;
  width: 100%;
}

.apt-lookbook-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.apt-lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--apt-ease-editorial);
}

.apt-lookbook-item:hover img {
  transform: scale(1.04);
}

.apt-lookbook-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--apt-ease-fast);
}

.apt-lookbook-item:hover .apt-lookbook-overlay {
  opacity: 1;
}

.apt-lookbook-overlay .apt-btn {
  background-color: #FFFFFF;
  color: #000000;
  font-size: var(--apt-text-xxs);
  padding: 10px 18px;
  min-height: auto;
}

/* 5. Press / Editorial Quotes Ticker */
.apt-press-quotes {
  padding: 80px 0;
  border-top: 1px solid var(--apt-color-border);
  border-bottom: 1px solid var(--apt-color-border);
  text-align: center;
}

.apt-press-quote__text {
  font-family: var(--apt-font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

.apt-press-quote__source {
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xxs);
  letter-spacing: var(--apt-tracking-widest);
  text-transform: uppercase;
  color: var(--apt-color-text-muted);
}
