/* =========================================================
   STAR FARM — HOME PAGE ONLY
   ---------------------------------------------------------
   Styles for the redesigned homepage hero: one big quiet
   cover with a short two-word heading, nothing else. Loaded
   only by index.html — every other page is untouched.
   ========================================================= */

.minimal-hero {
  padding: 1rem 0 1.5rem;
  background: var(--color-white);
}

.minimal-hero-row {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.minimal-hero-row .minimal-hero-frame {
  flex: 1 1 auto;
  min-width: 0;
}

/* Small side card next to the cover photo — sized like a product
   card (see .scroll-row .card in style.css), photo set from
   Admin > Site Settings. Hidden until a photo has been uploaded. */
.hero-side-card {
  flex: 0 0 100px;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 641px) {
  .hero-side-card { flex-basis: 190px; }
}

.hero-side-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.minimal-hero-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(120% 90% at 15% 0%, #22375f 0%, #16294b 45%, #0d1b34 100%);
  color: #fff;
}

@media (min-width: 641px) {
  .minimal-hero-frame { aspect-ratio: 21 / 7; }
}

.minimal-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.minimal-hero-photos {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.minimal-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.minimal-hero-photo.is-active { opacity: 1; }

.minimal-hero-frame.has-photo .minimal-hero-art { display: none; }

#home-category-rows .section-header h2 { margin-bottom: 0; }

/* ---------- Offer card (homepage promo banner) ---------- */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 15% 0%, #22375f 0%, #16294b 45%, #0d1b34 100%);
  color: #fff;
}

@media (min-width: 641px) {
  .offer-card { flex-direction: row; min-height: 300px; }
}

.offer-card-photo {
  flex: 1 1 50%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.06);
}

.offer-card-content {
  flex: 1 1 50%;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
}

.offer-card-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.offer-card-content h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0;
  color: #fff;
}

.offer-card-content p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 32ch;
}

.offer-card-content .btn {
  margin-top: 0.4rem;
}

/* ---------- Product ticker (scrolling strip of names, like karkuma) ---------- */
.home-ticker {
  background: var(--color-primary);
  overflow: hidden;
  padding-block: 0.65rem;
  white-space: nowrap;
  border-radius: 12px;
  margin-bottom: var(--space-md);
}
.home-ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: tickerScroll 32s linear infinite;
}
.home-ticker a {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.home-ticker a:hover { color: #fff; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .home-ticker-track { animation: none; }
}

/* ---------- Trust band (short bullets, not paragraphs) ---------- */
.home-trust {
  background: var(--color-bg-alt);
  padding: var(--space-xl) 0;
}
.home-trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.home-trust h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.home-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.home-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.home-trust-list svg { flex-shrink: 0; margin-top: 0.15rem; }
@media (max-width: 760px) {
  .home-trust-inner { grid-template-columns: 1fr; }
}

/* ---------- Hotline band ---------- */
.home-hotline {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-lg) 0;
}
.home-hotline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.home-hotline p {
  margin: 0;
  font-size: 0.95rem;
  color: #cfd7e6;
}
.home-hotline a.phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent);
  text-decoration: none;
}
.home-hotline-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Featured product tiles (karkuma-style colour blocks) ---------- */
.ktile-row-wrap {
  position: relative;
}
.ktile-card {
  position: relative;
  display: flex;
  flex: 0 0 340px;
  width: 340px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-snap-align: start;
}
.ktile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 28px rgba(13, 27, 52, 0.08);
  overflow: hidden;
  background-color: var(--color-bg-alt);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ktile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(13, 27, 52, 0.14);
}
.ktile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.ktile-name {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}
.ktile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
}
@media (max-width: 640px) {
  .ktile-card { flex-basis: 270px; width: 270px; }
}

/* ktile-0..5 palette classes are no longer used for color — the card
   background is now a photo set inline per tile (see index.html). */

