/* Appily twentyeight — homepage: glasshouse dew (layout preserved) */

.page-home {
  --home-ink: #13241c;
  --home-forest: #1a4a36;
  --home-leaf: #2d7a58;
  --home-leaf-soft: #4fa87a;
  --home-petal: #e8496a;
  --home-petal-soft: #ff8fa3;
  --home-mist: #e6f3ed;
  --home-glass: #f3faf6;
  --home-frost: #ffffff;
  --home-muted: #5c7268;
  --home-shadow: 0 18px 50px rgba(19, 36, 28, 0.12);
  --home-font-display: 'Fraunces', 'Libre Baskerville', Georgia, serif;
  --home-font-body: 'Sora', 'Karla', system-ui, sans-serif;
  --a28-cream: var(--home-mist);
  --a28-linen: #d7ebe1;
  --a28-sage: var(--home-leaf);
  --a28-plum: var(--home-forest);
  --a28-ink: var(--home-ink);
  --a28-muted: var(--home-muted);
  --a28-white: var(--home-frost);
  --a28-rose: var(--home-petal);
  --a28-font-display: var(--home-font-display);
  --a28-font-body: var(--home-font-body);
  font-family: var(--home-font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 168, 122, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 5%, rgba(232, 73, 106, 0.1), transparent 50%),
    linear-gradient(180deg, var(--home-glass) 0%, var(--home-mist) 40%, #dff0e8 100%);
  color: var(--home-ink);
}

.page-home .a28-header,
.page-home .a28-footer {
  font-family: var(--home-font-body);
}

@keyframes a28FloatMist {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(2%, -3%, 0) scale(1.06); opacity: 0.85; }
}

@keyframes a28RiseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes a28Shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes a28PetalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 73, 106, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(232, 73, 106, 0); }
}

@keyframes a28KenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Hero —— */
.a28-hero {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.a28-hero::before {
  content: '';
  position: absolute;
  top: -8%;
  right: max(-2%, calc((100% - var(--a28-container)) / 2));
  width: min(560px, 48vw);
  height: clamp(220px, 42%, 340px);
  background:
    radial-gradient(circle at 30% 40%, rgba(232, 73, 106, 0.22), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(45, 122, 88, 0.28), transparent 60%);
  filter: blur(8px);
  z-index: 0;
  animation: a28FloatMist 12s ease-in-out infinite;
  pointer-events: none;
}

.a28-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 122, 88, 0.35), transparent);
  z-index: 2;
}

.a28-hero-stage {
  position: relative;
  z-index: 1;
  width: min(var(--a28-container), 100%);
  margin: 0 auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 250, 246, 0.88) 55%, rgba(230, 243, 237, 0.95) 100%);
  border: 1px solid rgba(45, 122, 88, 0.12);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.a28-hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 122, 88, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 122, 88, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.a28-hero-grid {
  position: relative;
  z-index: 1;
  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:
    radial-gradient(circle at 50% 70%, rgba(79, 168, 122, 0.16), transparent 55%),
    linear-gradient(180deg, #edf8f2 0%, #e0f0e8 100%);
  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: linear-gradient(160deg, #d9eee4, #f7fcf9);
  border-radius: 28% 28% 14px 14px / 22% 22% 14px 14px;
  box-shadow:
    0 0 0 1px rgba(45, 122, 88, 0.15),
    0 24px 48px rgba(26, 74, 54, 0.18);
}

.a28-hero-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.a28-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
  z-index: 1;
}

.a28-hero-visual img.is-active {
  opacity: 1;
  transform: scale(1);
  animation: a28KenBurns 8s ease-out forwards;
}

.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: 3;
}

.a28-hero-slide-nav button {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 122, 88, 0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--home-muted);
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  backdrop-filter: blur(6px);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.2s;
}

.a28-hero-slide-nav button:hover {
  transform: translateY(-2px);
  color: var(--home-forest);
}

.a28-hero-slide-nav button.is-active {
  color: var(--home-frost);
  background: var(--home-forest);
  border-color: var(--home-forest);
  animation: a28PetalPulse 2.4s ease-out infinite;
}

.a28-hero-slide-nav button.is-active::before,
.a28-hero-slide-nav button.is-active::after {
  content: none;
}

.a28-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 4vw, 4rem);
  background: transparent;
  animation: a28RiseIn 0.8s ease both;
}

.a28-hero-copy h1 {
  margin: 0 0 1.15rem;
  line-height: 1.02;
}

.a28-hero-accent {
  display: block;
  font-family: var(--home-font-display);
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  background: linear-gradient(110deg, var(--home-leaf) 0%, var(--home-leaf-soft) 35%, var(--home-petal) 70%, var(--home-leaf) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: a28Shimmer 7s linear infinite, a28RiseIn 0.7s ease both;
}

.a28-hero-rest {
  display: block;
  font-family: var(--home-font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--home-ink);
  margin-top: 0.2rem;
  animation: a28RiseIn 0.75s ease 0.08s both;
}

.a28-hero-lede {
  font-size: 0.94rem;
  color: var(--home-muted);
  max-width: 38ch;
  margin: 0 0 2rem;
  line-height: 1.7;
  animation: a28RiseIn 0.8s ease 0.14s both;
}

.a28-btn-hero {
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--home-leaf) 0%, var(--home-forest) 100%);
  color: var(--home-frost);
  padding: 1rem 2.25rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(26, 74, 54, 0.28);
  animation: a28RiseIn 0.85s ease 0.2s both;
}

.a28-btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.a28-btn-hero:hover {
  background: linear-gradient(135deg, var(--home-petal) 0%, #c93355 100%);
  color: var(--home-frost);
  transform: translateY(-2px);
}

.a28-btn-hero:hover::before {
  transform: translateX(120%);
}

.a28-hero-band {
  position: relative;
  z-index: 1;
  height: 10px;
  margin-left: 48%;
  width: 52%;
  max-width: calc(var(--a28-container) / 2 + 2rem);
  background: linear-gradient(90deg, var(--home-leaf), var(--home-petal), var(--home-leaf-soft));
  background-size: 200% 100%;
  animation: a28Shimmer 5s linear infinite;
  border-radius: 0 0 0 8px;
}

/* —— Categories —— */
.a28-categories {
  padding: 0;
  background: transparent;
}

.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:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(230, 243, 237, 0.9)),
    var(--home-mist);
  border-right: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  transition: background 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.a28-cat-card:last-child { border-right: none; }

.a28-cat-card:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 240, 244, 0.75)),
    #fff;
  z-index: 1;
}

.a28-cat-copy { padding: 1.5rem 1.25rem 1.5rem 1.75rem; }

.a28-cat-copy h3 {
  font-family: var(--home-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

.a28-cat-copy span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--home-leaf);
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.a28-cat-copy span::after {
  content: '→';
  transition: transform 0.25s;
}

.a28-cat-card:hover .a28-cat-copy span {
  color: var(--home-petal);
  border-color: var(--home-petal);
  gap: 0.55rem;
}

.a28-cat-card:hover .a28-cat-copy span::after {
  transform: translateX(3px);
}

.a28-cat-img {
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  background: radial-gradient(circle at 50% 80%, rgba(79, 168, 122, 0.18), transparent 60%);
}

.a28-cat-img img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 10px 18px rgba(26, 74, 54, 0.18));
}

.a28-cat-card:hover .a28-cat-img img {
  transform: translateY(-8px) scale(1.05) rotate(-2deg);
}

/* —— Featured —— */
.a28-featured {
  padding: 4.5rem 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(180deg, transparent, rgba(45, 122, 88, 0.06));
}

.a28-featured .section-head h2 {
  font-family: var(--home-font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.a28-featured .section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-leaf), var(--home-petal));
}

.page-home .a28-product-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 122, 88, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(19, 36, 28, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
  animation: a28RiseIn 0.65s ease both;
}

.page-home .a28-product-grid > .a28-product-card:nth-child(1) { animation-delay: 0.04s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(2) { animation-delay: 0.08s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(3) { animation-delay: 0.12s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(4) { animation-delay: 0.16s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(5) { animation-delay: 0.2s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(6) { animation-delay: 0.24s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(7) { animation-delay: 0.28s; }
.page-home .a28-product-grid > .a28-product-card:nth-child(8) { animation-delay: 0.32s; }

.page-home .a28-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(26, 74, 54, 0.14);
}

.page-home .a28-product-img {
  background: linear-gradient(160deg, #e4f4ec, #f7fcf9);
}

.page-home .a28-product-img img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .a28-product-card:hover .a28-product-img img {
  transform: scale(1.07);
}

.page-home .a28-product-badge {
  background: var(--home-petal);
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.page-home .a28-product-actions .a28-cart-btn,
.page-home .a28-icon-btn {
  border-radius: 999px;
  background: var(--home-forest);
  transition: background 0.25s, transform 0.2s;
}

.page-home .a28-product-actions .a28-cart-btn:hover,
.page-home .a28-icon-btn:hover {
  background: var(--home-petal);
  transform: translateY(-1px);
}

/* —— Promo —— */
.a28-promo {
  padding: 0;
  background: transparent;
}

.a28-promo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 420px;
}

.a28-promo-main {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.a28-promo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.a28-promo-main:hover img {
  transform: scale(1.06);
}

.a28-promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(19, 36, 28, 0.15) 20%, rgba(26, 74, 54, 0.92) 100%);
  padding: 2.75rem 2rem 2.25rem;
  color: var(--home-frost);
}

.a28-promo-overlay h3 {
  font-family: var(--home-font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.a28-promo-overlay p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  font-size: 0.95rem;
}

.a28-promo-overlay .a28-btn-light {
  border-radius: 999px;
  background: var(--home-frost);
  color: var(--home-forest);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.a28-promo-overlay .a28-btn-light:hover {
  background: var(--home-petal);
  color: var(--home-frost);
}

.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: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(45, 122, 88, 0.12);
  transition: background 0.3s, transform 0.3s;
}

.a28-promo-side:last-child {
  border-bottom: none;
  background:
    linear-gradient(135deg, rgba(232, 73, 106, 0.1), rgba(45, 122, 88, 0.12)),
    var(--home-mist);
}

.a28-promo-side:hover {
  background: #fff;
  transform: translateX(3px);
}

.a28-promo-side h4 {
  font-family: var(--home-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.a28-promo-side span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--home-leaf);
  border-bottom: 2px solid currentColor;
}

.a28-promo-side img {
  max-height: 120px;
  width: 100%;
  object-fit: contain;
  justify-self: end;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 14px rgba(26, 74, 54, 0.15));
}

.a28-promo-side:hover img {
  transform: scale(1.08) rotate(2deg);
}

/* —— Journal —— */
.a28-journal {
  padding: 4.5rem 0 5rem;
  background: transparent;
}

.a28-journal .section-head h2 {
  font-family: var(--home-font-display);
  font-style: italic;
}

.a28-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.a28-journal-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(45, 122, 88, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 36, 28, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.a28-journal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(26, 74, 54, 0.14);
}

.a28-journal-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.a28-journal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.a28-journal-card:hover .a28-journal-img img {
  transform: scale(1.08);
}

.a28-journal-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 58%;
  background: linear-gradient(145deg, rgba(232, 73, 106, 0.45), rgba(45, 122, 88, 0.35));
  mix-blend-mode: multiply;
  opacity: 0.55;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  transition: opacity 0.35s, transform 0.45s;
}

.a28-journal-card:hover .a28-journal-accent {
  opacity: 0.75;
  transform: translateX(6px);
}

.a28-journal-body {
  padding: 1.35rem 1.35rem 1.6rem;
}

.a28-journal-date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-petal);
  margin-bottom: 0.45rem;
}

.a28-journal-body h3 {
  font-family: var(--home-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.a28-journal-body p {
  font-size: 0.86rem;
  color: var(--home-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .a28-hero::before {
    right: -5%;
    width: 70%;
    height: 200px;
  }

  .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 rgba(255, 255, 255, 0.85);
  }

  .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; }
  .a28-hero-frame { border-radius: 24% 24% 12px 12px / 18% 18% 12px 12px; }
}
