/* Elle Rêve Estetica: styles for index.html only. Shared rules live in ../style.css. */

/* ---------- 1. Hero ---------- */

.home-hero {
  padding-block: clamp(3rem, 1.5rem + 4.5vw, 5.5rem);
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}

.home-hero__text .eyebrow {
  margin-bottom: var(--space-3);
}

.home-hero__text .display-title {
  max-width: 10ch;
}

.home-hero__lead {
  margin: 0;
  color: var(--burgundy);
}

/* On narrow screens the buttons share one width and stack */
@media (max-width: 35.99em) {
  .home-hero .actions,
  .home-cta .actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 22rem;
  }

  .home-cta .actions {
    margin-inline: auto;
  }
}

/* Composition: arched photo inside concentric arches, illustration, stars and moon.
   Sizes are in container units so the whole composition scales as one piece. */
.home-hero__visual {
  position: relative;
  width: min(100%, 34rem);
  margin-inline: auto;
  aspect-ratio: 100 / 88;
  container-type: inline-size;
  color: var(--burgundy);
}

.home-hero__arch {
  position: absolute;
  left: 7cqi;
  bottom: 0;
  width: 53cqi;
}

/* Ground line under the arches, as in the illustrations */
.home-hero__arch::after {
  content: "";
  position: absolute;
  left: -12cqi;
  right: -12cqi;
  bottom: 0;
  height: 1px;
  background: var(--line-strong);
}

.home-hero__ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--arch-radius);
  pointer-events: none;
}

.home-hero__ring--inner {
  inset: -4cqi -4cqi 0;
}

.home-hero__ring--outer {
  inset: -8cqi -8cqi 0;
  border-color: var(--line);
}

.home-hero__photo {
  padding: 2.4cqi 2.4cqi 0;
}

.home-hero__photo img {
  aspect-ratio: 4 / 5;
}

.home-hero__illus {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28cqi;
  height: auto;
}

.home-hero__moon,
.home-hero__star {
  position: absolute;
}

.home-hero__moon {
  top: 4cqi;
  right: 9cqi;
  font-size: 6.5cqi;
}

.home-hero__star--1 {
  top: 14cqi;
  left: 1cqi;
  font-size: 3.6cqi;
}

.home-hero__star--2 {
  top: 22cqi;
  right: 3cqi;
  font-size: 2.6cqi;
}

.home-hero__star--3 {
  top: 31cqi;
  right: 17cqi;
  font-size: 1.8cqi;
}

.home-hero__star--4 {
  bottom: 30cqi;
  left: 0;
  font-size: 1.8cqi;
}

@media (min-width: 60em) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .home-hero__visual {
    margin-right: 0;
  }
}

/* ---------- 2. The story ---------- */

.home-story__grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.home-story__visual {
  position: relative;
  width: min(78%, 21rem);
  margin-inline: auto;
}

.home-story__illus {
  position: absolute;
  top: -1.5rem;
  right: -10%;
  width: 30%;
  height: auto;
}

.home-story__text .prose .lead,
.home-place__text .prose .lead {
  color: var(--burgundy);
}

.home-story .prose p + p,
.home-place .prose p + p {
  margin-top: 1.1em;
}

.home-story__link,
.home-place__link,
.home-featured__link {
  margin: var(--space-4) 0 0;
  color: var(--burgundy);
}

@media (min-width: 60em) {
  .home-story__illus {
    right: -24%;
    width: 34%;
  }

  .home-story__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-5) clamp(4rem, 8vw, 8rem);
  }
}

/* ---------- 3. Four words ---------- */

.home-pillars .pillar {
  text-align: center;
}

.home-pillars .pillar__illus {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: clamp(8rem, 6rem + 4vw, 10rem);
  margin-bottom: var(--space-4);
}

.home-pillars .pillar h3 {
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 1.9rem);
}

.home-pillars .pillar p {
  max-width: 17rem;
  margin-inline: auto;
}

@media (min-width: 64em) {
  .home-pillars {
    gap: 0;
  }

  .home-pillars .pillar {
    padding-inline: var(--space-3);
  }

  .home-pillars .pillar + .pillar {
    border-left: 1px solid var(--line);
  }
}

/* ---------- 4. Featured treatments ---------- */

.home-featured__grid {
  display: grid;
  gap: var(--space-5);
}

.home-featured__head .lead {
  max-width: 26rem;
  margin: 0;
}

.home-featured__cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-featured__cards > li {
  display: flex;
}

.home-featured__cards .post-card {
  width: 100%;
}

.home-featured__cards .post-card__title {
  max-width: 12ch;
  font-size: clamp(1.7rem, 1.3rem + 0.9vw, 2.15rem);
}

.home-featured__cards .post-card__text {
  max-width: min(15rem, 50%);
}

.home-featured__cards .post-card__illus {
  right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  width: 38%;
  max-height: 58%;
}

@media (min-width: 36em) {
  .home-featured__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured__cards .post-card {
    aspect-ratio: 1;
  }
}

@media (min-width: 60em) {
  .home-featured__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }

  .home-featured__head {
    position: sticky;
    top: calc(var(--header-height) + 2.5rem);
    padding-top: var(--space-3);
  }
}

/* ---------- 5. The place ---------- */

.home-place__grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.home-place__visual {
  position: relative;
  width: min(100%, 32rem);
  margin-inline: auto;
  aspect-ratio: 100 / 96;
  container-type: inline-size;
  color: var(--burgundy);
}

.home-place__photo {
  position: absolute;
}

.home-place__photo--main {
  top: 0;
  left: 0;
  width: 58cqi;
}

.home-place__photo--side {
  right: 0;
  bottom: 0;
  width: 38cqi;
}

.home-place__star {
  position: absolute;
}

.home-place__star--1 {
  top: 10cqi;
  right: 14cqi;
  font-size: 4cqi;
}

.home-place__star--2 {
  bottom: 6cqi;
  left: 22cqi;
  font-size: 2.4cqi;
}

@media (min-width: 60em) {
  .home-place__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5) clamp(4rem, 8vw, 8rem);
  }
}

/* ---------- 6. Quote ---------- */

/* Compact band: one sentence per line on wide screens, no arches
   behind the words (they crossed the text in a short section). */

.home-quote__sky {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--blush);
}

.home-quote__sky .moon {
  font-size: 2rem;
}

.home-quote__star--small {
  font-size: 0.8rem;
}

.home-quote__text {
  max-width: 44rem;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  line-height: 1.25;
  text-wrap: balance;
  color: var(--blush);
}

.home-quote__text p {
  margin: 0;
}

.home-quote__text p + p {
  margin-top: 0.35em;
}

.home-quote .rule {
  margin-block: var(--space-3) var(--space-2);
  color: var(--blush);
}

.home-quote .eyebrow {
  margin: 0;
}

/* ---------- 7. Instagram ---------- */

.home-feed {
  gap: 0.375rem;
}

.home-instagram__actions {
  justify-content: center;
  margin-top: var(--space-5);
}

@media (min-width: 48em) {
  .home-feed {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

/* ---------- 8. Book your moment ---------- */

.home-cta {
  position: relative;
  overflow: hidden;
}

.home-cta .star,
.home-cta h2 {
  color: var(--burgundy);
}

.home-cta .actions {
  justify-content: center;
}

.home-cta__illus {
  display: none;
}

@media (min-width: 64em) {
  .home-cta__illus {
    position: absolute;
    display: block;
    height: auto;
  }

  .home-cta__illus--left {
    top: 22%;
    left: max(2rem, calc(50% - 36rem));
    width: 7rem;
  }

  .home-cta__illus--right {
    right: max(2rem, calc(50% - 36rem));
    bottom: 0;
    width: 10rem;
  }
}
