/* ============================================================
   Summer Smith — Home Page
   ============================================================ */

/* --- Hero: editorial split — copy panel + coastal image -- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  min-height: calc(100vh - 64px);
  background-color: var(--color-cream);
}

/* Copy panel — aligned to the site container's left edge */
.hero__copy {
  display: flex;
  align-items: center;
  padding: var(--space-6) var(--space-7) var(--space-6)
           max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-5)));
}

.hero__copy-inner {
  max-width: 32ch;
}

.hero__headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-2xl);
  line-height: 1.04;
  color: var(--color-ink);
}

@media (min-width: 1280px) {
  .hero__headline {
    font-size: 4.25rem;
  }
}

.hero__subline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-ink-light);
  margin-top: var(--space-3);
}

.hero__cta {
  margin-top: var(--space-4);
}

/* Coastal image — full-bleed right half */
.hero__image {
  position: relative;
  overflow: hidden;
  min-height: 46vh;
}

.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__image {
    order: -1;
    height: 46vh;
  }
  .hero__copy {
    padding: var(--space-6) var(--space-5) var(--space-7);
  }
  .hero__headline {
    font-size: var(--text-xl);
  }
}

/* --- Coastal editorial band ------------------------------ */
.coastal {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../../assets/brand/coastal-band.jpg") center / cover no-repeat;
  overflow: hidden;
}

/* Soft light halo so the dark editorial line stays legible
   without dulling the vivid sea at the edges */
.coastal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 70% at 50% 50%,
    rgba(253, 250, 247, 0.62) 0%,
    rgba(253, 250, 247, 0.24) 55%,
    rgba(253, 250, 247, 0) 100%
  );
}

.coastal__inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--space-5);
  max-width: 34rem;
}

.coastal__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-xl);
  line-height: 1.15;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .coastal__text {
    font-size: 2.75rem;
  }
}

.coastal .section-divider {
  margin-inline: auto;
}

/* --- The Edit: 3 products, no headline fuss -------------- */
.edit__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

/* --- Brand statement: text-only, large italic ------------ */
.statement {
  text-align: center;
}

.statement__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--color-ink);
  max-width: 22ch;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .statement__text {
    font-size: var(--text-2xl);
  }
}

/* --- Feature section: asymmetric ------------------------- */
.feature-section {
  background: var(--color-shell);
}

.feature__media {
  background: var(--color-photo-bg);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__body .section-title {
  margin-top: var(--space-2);
}

.feature__lead {
  margin-top: var(--space-3);
}

.feature__cta {
  margin-top: var(--space-4);
}

/* --- Ingredient / benefit callout ------------------------ */
.benefits {
  background: var(--color-warm-white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.benefit__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--color-ink);
  margin-bottom: var(--space-1);
}

.benefit__text {
  color: var(--color-ink-light);
  font-size: var(--text-base);
}

@media (max-width: 768px) {
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* --- Newsletter ------------------------------------------ */
.newsletter {
  text-align: center;
}

.newsletter .inline-form {
  margin-inline: auto;
  margin-top: var(--space-4);
  justify-content: center;
}

/* --- Community favourites: horizontal product scroll ------ */
.fav-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-sand) transparent;
}

.fav-scroll::-webkit-scrollbar {
  height: 3px;
}

.fav-scroll::-webkit-scrollbar-thumb {
  background: var(--color-sand);
}

.fav-scroll .product-card {
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .fav-scroll .product-card {
    min-width: 82vw;
  }
}

/* --- Collection banner: full-width tonal block ------------ */
.collection {
  background: var(--color-teal-light);
  text-align: center;
  padding-block: var(--space-8);
}

.collection__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-xl);
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

@media (min-width: 1024px) {
  .collection__title {
    font-size: 2.75rem;
  }
}

.collection__sub {
  color: var(--color-ink-light);
  margin: 0 auto var(--space-4);
}

.collection__actions {
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* --- 3-column category grid ------------------------------- */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cat-card {
  position: relative;
  display: block;
  height: 460px;
  overflow: hidden;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-image);
}

.cat-card:hover img {
  transform: scale(1.03);
}

.cat-card__label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  background: var(--color-warm-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 10px 18px;
}

@media (max-width: 768px) {
  .cats {
    grid-template-columns: 1fr;
  }
  .cat-card {
    height: 320px;
  }
}

/* --- About flip: images left, tinted text right ----------- */
.about-flip {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-flip__imgs {
  display: grid;
  grid-template-rows: 280px 280px;
}

.about-flip__imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-flip__text {
  background: var(--color-sea-mist);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
}

.about-flip__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-xl);
  line-height: 1.15;
  margin-bottom: var(--space-1);
}

.about-flip__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--color-ink-light);
  margin-bottom: var(--space-4);
}

.about-flip__list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-ink);
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-sand);
  transition: color 0.2s ease;
}

.about-flip__list li:last-child a {
  border-bottom: 1px solid var(--color-sand);
}

.about-flip__list li a:hover {
  color: var(--color-teal);
}

@media (max-width: 768px) {
  .about-flip {
    grid-template-columns: 1fr;
  }
  .about-flip__text {
    padding: var(--space-5) var(--space-4);
  }
}
