/* ================================================
   HOMEPAGE — single source of truth
   No duplicates. No !important. No conflicts.
   ================================================ */

/* --- Header: two-row homepage variant --- */
.estila-header--homepage {
  position: fixed;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
}
.estila-header__row1 {
  background: var(--white);
}
.estila-header__row1 .estila-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
}
.estila-header__row2 {
  background: var(--ink-navy);
}
.estila-header__row2 .estila-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 44px;
  gap: 32px;
}

/* Nav links */
.estila-header--homepage .estila-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.estila-header--homepage .estila-nav--right {
  justify-content: flex-end;
}
.estila-header--homepage .estila-nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-charcoal);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.estila-header--homepage .estila-nav__link:hover {
  color: var(--gold);
}
.estila-header--homepage .estila-nav__search {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-charcoal);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.estila-header--homepage .estila-nav__search:hover {
  color: var(--gold);
}

/* Logo */
.estila-header--homepage .estila-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ink-charcoal);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  padding: 0 16px;
}

/* Library bar */
.estila-header--homepage .library-bar__brand {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.estila-header--homepage .library-bar__categories {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}
.estila-header--homepage .library-bar__categories a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.estila-header--homepage .library-bar__categories a:hover {
  color: var(--gold-light);
}
.estila-header--homepage .library-bar__cta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px;
  transition: all 0.2s ease;
}
.estila-header--homepage .library-bar__cta:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* Header mobile */
@media (max-width: 767px) {
  .estila-header--homepage .estila-nav--left,
  .estila-header--homepage .estila-nav--right {
    display: none;
  }
  .estila-header--homepage .library-bar__categories {
    display: none;
  }
  .estila-header__row1 .estila-header__inner {
    display: flex;
    justify-content: space-between;
  }
}

/* --- Hero --- */
.hero--home {
  height: 95vh;
  min-height: 650px;
  max-height: none;
  display: block;
}
.hero--home .hero__media img {
  object-position: center 25%;
}
.hero__centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
  z-index: 2;
}
.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--white);
  filter: drop-shadow(0 1px 12px rgba(0, 0, 0, 0.25));
  margin: 0 0 24px;
}
.btn--ghost-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(196, 168, 124, 0.65);
  color: var(--white);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn--ghost-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Hero mobile */
@media (max-width: 767px) {
  .hero--home {
    height: 95vh;
    min-height: 350px;
  }
  .hero__title {
    font-size: 1.5rem;
  }
}

/* --- Intro --- */
.intro-section {
  background: var(--white);
  padding: 72px 24px;
}
.intro-section__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.intro-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 400;
  color: var(--ink-charcoal);
  margin: 0 0 32px;
}
.intro-section__body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 16px;
  text-align: center;
}

/* --- Buttons --- */
.btn--outline-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 32px;
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}
.btn--outline-ink {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 24px;
  border: 1px solid var(--ink-charcoal);
  color: var(--ink-charcoal);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn--outline-ink:hover {
  background: var(--ink-charcoal);
  color: var(--white);
}

/* --- Image trio --- */
.image-trio {
  background: var(--surface);
  padding: 0;
}
.image-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.image-trio__item {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.image-trio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.image-trio__item:hover img {
  transform: scale(1.03);
}
@media (max-width: 639px) {
  .image-trio__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Split sections --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split--reversed .split__content {
  order: 1;
}
.split--reversed .split__media {
  order: 2;
}
.split__media {
  overflow: hidden;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 350px;
}
.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
}
.split--library {
  min-height: 560px;
}
.split--library .split__content {
  background: var(--surface);
}
.split--art {
  min-height: 650px;
}
.split--art .split__content {
  background: var(--white);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.split__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--ink-charcoal);
  margin: 0 0 20px;
}
.split__title--heavy {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.split__body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 0 16px;
}
.split__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
}
.split--art .btn--outline-gold {
  margin-top: 16px;
}

/* Split mobile */
@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split .split__media {
    aspect-ratio: 4 / 3;
    order: 1;
  }
  .split .split__content {
    order: 2;
    padding: 40px 24px;
  }
}

/* --- Footer (light ivory) --- */
.footer-light {
  background: var(--surface);
  color: var(--ink-soft);
}
.footer-light__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 32px;
}
.footer-light__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 24px;
}
@media (max-width: 767px) {
  .footer-light__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 479px) {
  .footer-light__grid {
    grid-template-columns: 1fr;
  }
}

.footer-light__monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}
.footer-light__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 240px;
}
.footer-light__club {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 240px;
}
.footer-light__newsletter {
  display: flex;
  height: 40px;
  margin-bottom: 8px;
}
.footer-light__input {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-charcoal);
  flex: 1;
  min-width: 0;
  height: 40px;
}
.footer-light__input::placeholder {
  color: var(--ink-faint);
}
.footer-light__input:focus {
  outline: none;
  border-color: var(--gold);
}
.footer-light__subscribe {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 40px;
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.footer-light__subscribe:hover {
  background: var(--gold-hover);
}
.footer-light__privacy {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--ink-faint);
  margin: 0;
}
.footer-light__privacy a {
  color: var(--gold);
  text-decoration: none;
}

.footer-light__heading {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-charcoal);
  margin: 0 0 20px;
}
.footer-light__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 2.2;
}
.footer-light__list a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-light__list a:hover {
  color: var(--gold);
}
.footer-light__list--plain li {
  color: var(--ink-soft);
  line-height: 2.0;
}
.footer-light__list--plain a {
  color: var(--ink-soft);
}

/* Social icons */
.footer-light__social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-light__social-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 8px;
}
.footer-light__social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-charcoal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease;
}
.footer-light__social-icon:hover {
  background: var(--gold);
}
.footer-light__social-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
}

/* Copyright */
.footer-light__legal {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 24px;
}
.footer-light__legal p {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-faint);
  margin: 0;
}
.footer-light__legal a {
  color: var(--gold);
  text-decoration: none;
}
.footer-light__legal a:hover {
  text-decoration: underline;
}

/* Image trio hover overlay */
.image-trio__item {
  position: relative;
  overflow: hidden;
}
.image-trio__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.image-trio__item:hover .image-trio__overlay {
  opacity: 1;
}
.image-trio__label {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
}

}

/* Dark gradient overlay on hero for text contrast */
.hero--home .hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

/* Larger hero headline to match estilastudio */
.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}

/* Homepage hero offset — sits below sticky header (row1 + row2) */
.page-inner--front .hero--home {
  margin-top: 0;
}
