/* Appily twentyeight — homepage (Kardone-inspired layout) */

/* Hero — Kardone reference: layered card, split image/copy, bottom accent bar */
.a28-hero {
  position: relative;
  background: #f7f7f7;
  overflow: hidden;
}

.a28-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: max(0px, calc((100% - var(--a28-container)) / 2 + 1.5rem));
  width: min(520px, 46vw);
  height: clamp(180px, 34%, 280px);
  background: var(--a28-cream);
  z-index: 0;
}

.a28-hero-stage {
  position: relative;
  z-index: 1;
  width: min(var(--a28-container), 100%);
  margin: 0 auto;
  background: var(--a28-white);
}

.a28-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: clamp(420px, 56vh, 540px);
}

.a28-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #f7f7f7;
  min-height: clamp(420px, 56vh, 540px);
}

.a28-hero-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  max-height: min(480px, calc(56vh - 3rem));
  margin: 0 auto;
  overflow: hidden;
  background: #f0f0f0;
}

.a28-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.a28-hero-slide-nav {
  position: absolute;
  left: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.a28-hero-slide-nav button {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #b8b8b8;
  padding: 0.35rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.a28-hero-slide-nav button.is-active {
  color: var(--a28-ink);
}

.a28-hero-slide-nav button.is-active::before,
.a28-hero-slide-nav button.is-active::after {
  content: '';
  width: 2px;
  height: 14px;
  background: var(--a28-sage);
}

.a28-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 4vw, 4rem);
  background: #f7f7f7;
}

.a28-hero-copy h1 {
  margin: 0 0 1.15rem;
  line-height: 1.08;
}

.a28-hero-accent {
  display: block;
  font-family: var(--a28-font-body);
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 700;
  color: var(--a28-sage);
}

.a28-hero-rest {
  display: block;
  font-family: var(--a28-font-body);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--a28-ink);
  margin-top: 0.15rem;
}

.a28-hero-lede {
  font-size: 0.92rem;
  color: var(--a28-muted);
  max-width: 38ch;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.a28-btn-hero {
  align-self: flex-start;
  background: var(--a28-sage);
  color: var(--a28-white);
  padding: 0.95rem 2.1rem;
  border-radius: 3px;
}

.a28-btn-hero:hover {
  background: var(--a28-plum);
  color: var(--a28-white);
}

.a28-hero-band {
  position: relative;
  z-index: 1;
  height: 13px;
  margin-left: 48%;
  width: 52%;
  max-width: calc(var(--a28-container) / 2 + 2rem);
  background: var(--a28-sage);
}

/* Category triptych — Kardone Robusta/Arabica style */
.a28-categories {
  padding: 0;
  background: var(--a28-white);
}
.a28-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.a28-cat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 200px;
  background: var(--a28-linen);
  border-right: 1px solid var(--a28-white);
  overflow: hidden;
  transition: background 0.25s;
}
.a28-cat-card:last-child { border-right: none; }
.a28-cat-card:hover { background: var(--a28-cream); }
.a28-cat-copy { padding: 1.5rem 1.25rem 1.5rem 1.75rem; }
.a28-cat-copy h3 {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 0.65rem;
}
.a28-cat-copy span {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: underline;
  color: var(--a28-ink);
}
.a28-cat-img {
  height: 100%; min-height: 180px;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0.5rem;
}
.a28-cat-img img {
  max-height: 160px; width: auto; object-fit: contain;
}

/* Featured products */
.a28-featured {
  padding: 4rem 0;
  background: var(--a28-cream);
}
.a28-featured .section-head h2 {
  font-family: var(--a28-font-display);
  font-style: italic;
}

/* Promo band — asymmetric Kardone layout */
.a28-promo {
  padding: 0;
  background: var(--a28-white);
}
.a28-promo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 420px;
}
.a28-promo-main {
  position: relative; overflow: hidden;
}
.a28-promo-main img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
}
.a28-promo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--a28-sage);
  padding: 2.5rem 2rem;
  color: var(--a28-white);
}
.a28-promo-overlay h3 {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700;
  letter-spacing: 0.06em; margin: 0 0 0.25rem;
}
.a28-promo-overlay p { margin: 0 0 1.25rem; opacity: 0.9; font-size: 0.95rem; }
.a28-promo-stack { display: flex; flex-direction: column; }
.a28-promo-side {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 1.75rem 2rem;
  background: var(--a28-white);
  border-bottom: 1px solid var(--a28-linen);
}
.a28-promo-side:last-child { border-bottom: none; background: var(--a28-cream); }
.a28-promo-side h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; }
.a28-promo-side span {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: underline;
}
.a28-promo-side img {
  max-height: 120px; width: 100%; object-fit: contain; justify-self: end;
}

/* Journal section */
.a28-journal {
  padding: 4rem 0;
  background: var(--a28-white);
}
.a28-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.a28-journal-card {
  background: var(--a28-cream);
}
.a28-journal-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.a28-journal-img img { width: 100%; height: 100%; object-fit: cover; }
.a28-journal-accent {
  position: absolute; top: 0; left: 0;
  width: 40%; height: 55%;
  background: var(--a28-plum); opacity: 0.12;
}
.a28-journal-body { padding: 1.25rem 1.25rem 1.5rem; }
.a28-journal-date { font-size: 0.75rem; color: var(--a28-muted); margin-bottom: 0.35rem; }
.a28-journal-body h3 {
  font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.35;
}
.a28-journal-body p { font-size: 0.85rem; color: var(--a28-muted); margin: 0; line-height: 1.55; }

@media (max-width: 1024px) {
  .a28-hero::before {
    right: 0;
    width: 55%;
    height: 160px;
  }

  .a28-hero-grid { grid-template-columns: 1fr; }
  .a28-hero-visual {
    min-height: auto;
    padding: 1.5rem 1.25rem 2rem;
  }
  .a28-hero-frame {
    width: min(100%, 360px);
    max-height: 420px;
  }
  .a28-hero-copy { padding: 2.5rem 1.5rem; order: -1; }
  .a28-hero-band {
    margin-left: 25%;
    width: 75%;
    max-width: none;
  }
  .a28-cat-grid { grid-template-columns: 1fr; }
  .a28-cat-card { border-right: none; border-bottom: 1px solid var(--a28-white); }
  .a28-promo-grid { grid-template-columns: 1fr; }
  .a28-journal-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .a28-cat-card { grid-template-columns: 1fr; }
  .a28-cat-img { min-height: 140px; }
  .a28-promo-side { grid-template-columns: 1fr; text-align: center; }
  .a28-promo-side img { justify-self: center; margin-top: 1rem; }
  .a28-hero-accent { font-size: clamp(2rem, 9vw, 2.6rem); }
  .a28-hero-rest { font-size: clamp(1.25rem, 5.5vw, 1.65rem); }
  .a28-hero-lede { max-width: none; }
  .a28-btn-hero { width: 100%; justify-content: center; }
}
