/* =========================================================
   WHITE BEARD COFFEE & ROASTERY
   Home Page
   File: /assets/css/pages/home.css

   Notes:
   - Layout utama desktop.
   - Responsive dipisahkan ke home-responsive.css.
   - Tidak menyimpan styling global seperti button, container,
     header, footer, reveal, loader, dan WhatsApp.
   ========================================================= */


/* =========================================================
   1. HOME PAGE BASE
   ========================================================= */

body[data-page="home"] {
  background-color: var(--color-paper, #f7f3eb);
  color: var(--color-ink, #17130f);
}

.home-main {
  position: relative;
  overflow: clip;
}

.home-main img {
  display: block;
  max-width: 100%;
}

/* Icon inside Home buttons */
.home-main .wb-button > img,
.home-main .wb-button > svg {
  width: 1.125rem;
  height: 1.125rem;
  max-width: 1.125rem;
  flex: 0 0 1.125rem;
  object-fit: contain;
  pointer-events: none;
}

.home-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--color-roast, #72452d);
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-section__eyebrow::before {
  width: 2rem;
  height: 1px;
  background-color: currentColor;
  content: "";
}

.home-section__title {
  max-width: 12ch;
  margin: 0;
  color: var(--color-ink, #17130f);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(2.75rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-section__title em {
  color: var(--color-roast, #72452d);
  font-weight: 400;
}

.home-section__copy {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--color-charcoal, #49423b);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.8;
}

.home-section__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
}


/* =========================================================
   2. HEADER APPEARANCE ON HOME HERO
   ========================================================= */

body[data-page="home"] .site-header:not(.is-scrolled) {
  color: #ffffff;
  background-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body[data-page="home"] .site-header:not(.is-scrolled) .site-nav__link {
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="home"] .site-header:not(.is-scrolled) .site-nav__link:hover,
body[data-page="home"] .site-header:not(.is-scrolled) .site-nav__link.is-active,
body[data-page="home"] .site-header:not(.is-scrolled) .site-nav__link[aria-current="page"] {
  color: #ffffff;
}

body[data-page="home"] .site-header:not(.is-scrolled) .site-nav__link::after {
  background-color: #ffffff;
}

body[data-page="home"] .site-header:not(.is-scrolled) .site-header__menu-line {
  background-color: #ffffff;
}

/*
 * Logo light digunakan ketika header berada di atas hero.
 * Logo dark digunakan setelah header mendapat class .is-scrolled.
 */

body[data-page="home"] .site-header:not(.is-scrolled) .site-logo__image--light {
  display: block;
}

body[data-page="home"] .site-header:not(.is-scrolled) .site-logo__image--dark {
  display: none;
}

body[data-page="home"] .site-header.is-scrolled .site-logo__image--light {
  display: none;
}

body[data-page="home"] .site-header.is-scrolled .site-logo__image--dark {
  display: block;
}


/* =========================================================
   3. HERO
   ========================================================= */

.home-hero {
  position: relative;
  display: flex;
  min-height: max(47.5rem, 100svh);
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-ink, #17130f);
  color: #ffffff;
}

.home-hero__media,
.home-hero__picture {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.home-hero__picture {
  inset: -5%;
  width: 110%;
  height: 110%;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center center);
}

.home-hero__overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 10, 8, 0.84) 0%,
      rgba(12, 10, 8, 0.55) 43%,
      rgba(12, 10, 8, 0.15) 72%,
      rgba(12, 10, 8, 0.22) 100%
    ),
    linear-gradient(
      0deg,
      rgba(12, 10, 8, 0.78) 0%,
      rgba(12, 10, 8, 0.08) 52%,
      rgba(12, 10, 8, 0.28) 100%
    );
}

.home-hero__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.home-hero__inner {
  width: 100%;
  padding-top: 10rem;
  padding-bottom: clamp(4rem, 8vh, 7rem);
}

.home-hero__content {
  max-width: 65rem;
}

.home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-hero__eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
  content: "";
}

.home-hero__title {
  max-width: 9ch;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(4rem, 8.5vw, 9rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.home-hero__title em {
  display: block;
  color: var(--color-oat, #dbc7aa);
  font-weight: 400;
}

.home-hero__copy {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.75;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.home-hero__actions .button--light {
  color: var(--color-ink, #17130f);
  background-color: #ffffff;
  border-color: #ffffff;
}

.home-hero__actions .button--outline-light {
  color: #ffffff;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.home-hero__actions .button--outline-light:hover {
  color: var(--color-ink, #17130f);
  background-color: #ffffff;
  border-color: #ffffff;
}

.home-hero__meta {
  position: absolute;
  right: max(2rem, calc((100vw - var(--container, 80rem)) / 2));
  bottom: clamp(4rem, 8vh, 7rem);
  display: grid;
  gap: 0.35rem;
  max-width: 16rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.home-hero__meta-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero__meta-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.55;
}

.home-hero__scroll {
  position: absolute;
  right: 2rem;
  bottom: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateY(50%) rotate(90deg);
  transform-origin: right center;
}

.home-hero__scroll::after {
  width: 3.5rem;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.42);
  content: "";
}


/* =========================================================
   4. BRAND INTRODUCTION
   ========================================================= */

.home-intro {
  position: relative;
  padding-block: clamp(7rem, 11vw, 11rem);
  background-color: var(--color-paper, #f7f3eb);
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 8.5rem);
}

.home-intro__media {
  position: relative;
}

.home-intro__picture {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-sand, #d8c1a3);
}

.home-intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--intro-position, center center);
  transition: transform 900ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.home-intro__picture:hover .home-intro__image {
  transform: scale(1.025);
}

.home-intro__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--color-charcoal, #49423b);
  font-size: 0.75rem;
  line-height: 1.5;
}

.home-intro__caption-index {
  color: var(--color-roast, #72452d);
  font-weight: 600;
}

.home-intro__content {
  max-width: 39rem;
}

.home-intro__lead {
  margin: 2rem 0 0;
  color: var(--color-ink, #17130f);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
}

.home-intro__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(23, 19, 15, 0.16);
}

.home-intro__fact {
  display: grid;
  gap: 0.4rem;
}

.home-intro__fact-value {
  color: var(--color-ink, #17130f);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.home-intro__fact-label {
  color: var(--color-charcoal, #49423b);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================================
   5. BRAND STATEMENT
   ========================================================= */

.home-brand {
  position: relative;
  overflow: hidden;
  background-color: var(--color-clay, #b87955);
  color: var(--color-ink, #17130f);
}

.home-brand__grid {
  display: grid;
  min-height: 43rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-brand__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(4rem, 7vw, 7rem);
}

.home-brand__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-brand__quote {
  max-width: 11ch;
  margin: 4rem 0;
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.home-brand__quote em {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.home-brand__footer {
  max-width: 30rem;
  color: rgba(23, 19, 15, 0.72);
  line-height: 1.75;
}

.home-brand__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background-color: var(--color-coffee, #33251d);
}

.home-brand__picture {
  position: absolute;
  inset: -5%;
}

.home-brand__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--brand-position, center center);
}


/* =========================================================
   6. OUR STORY PREVIEW
   ========================================================= */

.home-story {
  padding-block: clamp(7rem, 11vw, 11rem);
  background-color: var(--color-cream, #ede3d3);
}

.home-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(22rem, 4fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 8rem);
}

.home-story__media {
  position: relative;
}

.home-story__picture {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--color-sand, #d8c1a3);
}

.home-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--story-position, center center);
  transition: transform 900ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.home-story__picture:hover .home-story__image {
  transform: scale(1.025);
}

.home-story__year {
  position: absolute;
  right: -1.5rem;
  bottom: -2.75rem;
  color: var(--color-roast, #72452d);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(5rem, 9vw, 9.5rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.home-story__content {
  position: relative;
  z-index: 1;
}

.home-story__copy {
  margin-top: 1.75rem;
}

.home-story__copy p {
  margin: 0;
  color: var(--color-charcoal, #49423b);
  line-height: 1.8;
}

.home-story__copy p + p {
  margin-top: 1rem;
}


/* =========================================================
   7. BEANS FEATURE
   ========================================================= */

.home-beans {
  position: relative;
  overflow: hidden;
  background-color: var(--color-ink, #17130f);
  color: #ffffff;
}

.home-beans__feature {
  display: grid;
  min-height: 48rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(25rem, 0.85fr);
}

.home-beans__media {
  position: relative;
  min-height: 48rem;
  overflow: hidden;
}

.home-beans__picture {
  position: absolute;
  inset: -5%;
}

.home-beans__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--beans-position, center center);
}

.home-beans__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(23, 19, 15, 0.05) 50%,
      var(--color-ink, #17130f) 100%
    );
  content: "";
  pointer-events: none;
}

.home-beans__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 7vw, 7rem);
}

.home-beans__content .home-section__eyebrow {
  color: var(--color-oat, #dbc7aa);
}

.home-beans__content .home-section__title {
  color: #ffffff;
}

.home-beans__content .home-section__title em {
  color: var(--color-oat, #dbc7aa);
}

.home-beans__content .home-section__copy {
  color: rgba(255, 255, 255, 0.66);
}

.home-beans__principles {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-beans__principle {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-beans__principle-number {
  color: var(--color-oat, #dbc7aa);
  font-family: var(--font-display, "Lora", serif);
}

.home-beans__principle-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.6;
}


/* =========================================================
   8. FEATURED PRODUCTS
   ========================================================= */

.home-products {
  padding-block: clamp(7rem, 10vw, 10rem);
  background-color: var(--color-paper, #f7f3eb);
}

.home-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.home-products__heading {
  max-width: 48rem;
}

.home-products__description {
  max-width: 27rem;
  margin: 0 0 0.5rem;
  color: var(--color-charcoal, #49423b);
  line-height: 1.7;
}

.home-products__grid,
[data-home-products] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
}

.home-product {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 19, 15, 0.22);
}

.home-product__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-cream, #ede3d3);
}

.home-product__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.home-product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 800ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    filter 400ms ease;
}

.home-product:hover .home-product__image {
  transform: scale(1.035);
}

.home-product__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 1.5rem;
}

.home-product__category {
  margin: 0 0 0.75rem;
  color: var(--color-roast, #72452d);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-product__title {
  margin: 0;
  color: var(--color-ink, #17130f);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.home-product__title a {
  color: inherit;
}

.home-product__notes {
  margin: 1rem 0 0;
  color: var(--color-charcoal, #49423b);
  font-size: 0.875rem;
  line-height: 1.65;
}

.home-product__weights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 1.25rem 0 0;
  color: rgba(23, 19, 15, 0.58);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.home-product__explore,
.home-product__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease;
}

.home-product__explore {
  padding-inline: 1.25rem;
  color: #ffffff;
  background-color: var(--color-ink, #17130f);
  border: 1px solid var(--color-ink, #17130f);
}

.home-product__explore:hover {
  background-color: var(--color-roast, #72452d);
  border-color: var(--color-roast, #72452d);
}

.home-product__whatsapp {
  color: var(--color-ink, #17130f);
  border-bottom: 1px solid rgba(23, 19, 15, 0.35);
}

.home-product__whatsapp:hover {
  color: var(--color-roast, #72452d);
  border-bottom-color: var(--color-roast, #72452d);
}

.home-products__empty,
[data-home-products-empty] {
  padding: 2rem;
  color: var(--color-charcoal, #49423b);
  text-align: center;
  border: 1px solid rgba(23, 19, 15, 0.16);
}

body:not(.home-has-products) [data-home-products] {
  min-height: 18rem;
}


/* =========================================================
   9. VISIT US PREVIEW
   ========================================================= */

.home-visit {
  padding-block: clamp(7rem, 11vw, 11rem);
  background-color: var(--color-cream, #ede3d3);
}

.home-visit__grid {
  display: grid;
  grid-template-columns: minmax(24rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 8rem);
}

.home-visit__content {
  max-width: 37rem;
}

.home-visit__details {
  display: grid;
  gap: 0;
  margin-top: 2.75rem;
  border-top: 1px solid rgba(23, 19, 15, 0.18);
}

.home-visit__detail {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(23, 19, 15, 0.18);
}

.home-visit__detail-label {
  color: var(--color-roast, #72452d);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-visit__detail-value {
  color: var(--color-ink, #17130f);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.home-visit__media {
  position: relative;
  padding-left: clamp(2rem, 4vw, 4rem);
}

.home-visit__picture {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-sand, #d8c1a3);
}

.home-visit__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--visit-position, center center);
  transition: transform 900ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.home-visit__picture:hover .home-visit__image {
  transform: scale(1.025);
}

.home-visit__motto {
  position: absolute;
  bottom: 3rem;
  left: 0;
  width: min(22rem, 78%);
  padding: 1.75rem 2rem;
  color: #ffffff;
  background-color: var(--color-roast, #72452d);
}

.home-visit__motto-label {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-visit__motto-text {
  margin: 0;
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}


/* =========================================================
   10. EVENTS
   ========================================================= */

.home-events {
  padding-block: clamp(7rem, 10vw, 10rem);
  background-color: var(--color-paper, #f7f3eb);
}

.home-events__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.home-events__grid,
[data-home-events] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
}

.home-event {
  border-top: 1px solid rgba(23, 19, 15, 0.22);
}

.home-event__link {
  display: block;
  padding-top: 1rem;
  color: inherit;
}

.home-event__figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background-color: var(--color-cream, #ede3d3);
}

.home-event__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.home-event__link:hover .home-event__image {
  transform: scale(1.035);
}

.home-event__content {
  padding-top: 1.5rem;
}

.home-event__date {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-roast, #72452d);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-event__title {
  margin: 0;
  color: var(--color-ink, #17130f);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.18;
}

.home-event__summary {
  margin: 1rem 0 0;
  color: var(--color-charcoal, #49423b);
  font-size: 0.875rem;
  line-height: 1.7;
}


/* =========================================================
   11. CLOSING CTA
   ========================================================= */

.home-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-coffee, #33251d);
  color: #ffffff;
}

.home-cta__media {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.home-cta__picture {
  position: absolute;
  inset: -5%;
}

.home-cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--detail-position, center center);
}

.home-cta__overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18, 13, 10, 0.94) 0%,
      rgba(18, 13, 10, 0.78) 48%,
      rgba(18, 13, 10, 0.42) 100%
    );
}

.home-cta__inner {
  display: flex;
  min-height: 38rem;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding-block: clamp(5rem, 8vw, 8rem);
}

.home-cta__content {
  max-width: 51rem;
}

.home-cta__eyebrow {
  margin: 0 0 1.5rem;
  color: var(--color-oat, #dbc7aa);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-cta__title {
  max-width: 11ch;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.home-cta__copy {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.home-cta__mark {
  align-self: flex-end;
  padding-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-display, "Lora", serif);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}


/* =========================================================
   12. DATA AND CONTENT STATES
   ========================================================= */

[data-home-products-section][hidden],
[data-home-events-section][hidden],
[data-home-products-empty][hidden] {
  display: none !important;
}

body:not(.home-is-ready) [data-home-products],
body:not(.home-is-ready) [data-home-events] {
  opacity: 0;
}

body.home-is-ready [data-home-products],
body.home-is-ready [data-home-events] {
  opacity: 1;
  transition: opacity 400ms ease;
}

body.home-has-products [data-home-products-empty] {
  display: none;
}


/* =========================================================
   13. IMAGE FALLBACK
   ========================================================= */

.home-hero__image[src=""],
.home-intro__image[src=""],
.home-brand__image[src=""],
.home-story__image[src=""],
.home-beans__image[src=""],
.home-visit__image[src=""],
.home-cta__image[src=""],
.home-product__image[src=""],
.home-event__image[src=""] {
  visibility: hidden;
}