/* Home page styles: hero carousel, zone tiles, sale band, brand strip, news, promo tiles. */

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.quiet-note { grid-column: 1 / -1; text-align: center; color: var(--ink-2); font-size: 14px; padding: 26px 0; }

/* ---------- hero carousel ---------- */
.hero-sec { padding: 20px 0 0; }
.hero {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  aspect-ratio: 1600 / 640; min-height: 340px; max-height: 500px; background: var(--spruce-t);
}
.hero-skel { position: absolute; inset: 0; border-radius: 0; }

.hero-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .45s ease-out; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-slide { --tint: var(--spruce-t); }
.hero-slide[data-theme="cat"] { --tint: var(--cat-t); }
.hero-slide[data-theme="dog"] { --tint: var(--dog-t); }

.hero-panel {
  position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
  max-width: 440px; padding: 26px 30px 28px; border-radius: var(--r);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 68%, var(--tint));
  border: 1px solid color-mix(in srgb, var(--ink) 8%, var(--tint));
}
.hero-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.hero-sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.hero-cta { margin-top: 16px; }
.hero-slide:hover .hero-cta { background: var(--spruce-2); }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; z-index: 5; }
.hero-dot { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.hero-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(34, 39, 31, .3); transition: background .16s ease-out, transform .16s ease-out;
}
.hero-dot:hover::before { background: rgba(34, 39, 31, .55); }
.hero-dot.on::before { background: var(--spruce); transform: scale(1.3); }

/* ---------- zone quick tiles ---------- */
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.zone {
  grid-column: span 2; position: relative; overflow: hidden; display: flex; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r); padding: 30px 32px; min-height: 240px;
  transition: border-color .16s ease-out;
}
.zone:hover { border-color: var(--ink-2); }
.zone--cat { background: var(--cat-t); }
.zone--dog { background: var(--dog-t); }
.zone-text { position: relative; z-index: 2; display: block; max-width: calc(100% - 300px); }
.zone-title { display: block; font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.zone-sub { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.zone-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--spruce); }
.zone-cta svg { width: 15px; height: 15px; transition: transform .16s ease-out; }
.zone:hover .zone-cta { color: var(--spruce-2); text-decoration: underline; text-underline-offset: 3px; }
.zone:hover .zone-cta svg { transform: translateX(3px); }

.zone-shots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.zone-shots img {
  position: absolute; width: 118px; height: 118px; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--paper);
}
.zone-shots img:nth-child(1) { right: 150px; top: 26px; transform: rotate(-5deg); }
.zone-shots img:nth-child(2) { right: 26px; top: 58px; width: 132px; height: 132px; transform: rotate(4deg); }
.zone-shots img:nth-child(3) { right: 96px; bottom: -26px; transform: rotate(-3deg); }

.qtile {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  transition: border-color .16s ease-out;
}
.qtile:hover { border-color: var(--ink-2); }
.qtile-ic { flex: none; width: 42px; height: 42px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.qtile-ic svg { width: 22px; height: 22px; }
.qtile-t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.qtile-s { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.qtile--sale .qtile-ic { background: var(--sale-t); color: var(--sale); }
.qtile--freeze .qtile-ic { background: var(--dog-t); color: #2C4A66; }
.qtile--litter .qtile-ic { background: var(--cat-t); color: #9A6414; }
.qtile--member .qtile-ic { background: var(--spruce-t); color: var(--spruce); }

/* ---------- sale band ---------- */
.sale-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sale-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sale-head .more { margin-left: auto; color: var(--spruce); font-weight: 500; white-space: nowrap; }
.sale-head .more:hover { color: var(--spruce-2); text-decoration: underline; text-underline-offset: 3px; }
.sale-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sale-band .card { background: var(--bone); }
.sale-band .card .card-media { background: var(--bone); }

/* ---------- brand strip ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-cell {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px;
  transition: border-color .16s ease-out;
}
.brand-cell:hover { border-color: var(--ink-2); }
.brand-cell img { width: 100%; max-width: 230px; height: auto; }
.brand-skel { height: 96px; }

/* ---------- latest posts ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s ease-out;
}
.post-card:hover { border-color: var(--ink-2); }
.post-cover { display: block; aspect-ratio: 800 / 500; background: var(--bone); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.post-tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--spruce-t); color: var(--spruce-2); }
.post-title {
  font-size: 16px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover .post-title { color: var(--spruce); }
.post-excerpt {
  font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-date { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--ink-2); }

/* ---------- promo tiles ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo {
  display: grid; grid-template-columns: 42% 1fr; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s ease-out;
}
.promo:hover { border-color: var(--ink-2); }
.promo-media { display: block; background: var(--spruce-t); }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 22px 24px; }
.promo-title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.promo-sub { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.promo-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--spruce); }
.promo-more svg { width: 15px; height: 15px; transition: transform .16s ease-out; }
.promo:hover .promo-more { color: var(--spruce-2); text-decoration: underline; text-underline-offset: 3px; }
.promo:hover .promo-more svg { transform: translateX(3px); }
.promo-skel { height: 190px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .zone { grid-column: 1 / -1; min-height: 208px; }
}

@media (max-width: 900px) {
  .hero { min-height: 330px; }
  .hero-panel { left: 24px; max-width: 380px; padding: 20px 24px 22px; }
  .sale-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(168px, 42%);
    overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .sale-grid > * { scroll-snap-align: start; }
  .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { aspect-ratio: auto; height: 416px; min-height: 0; }
  .hero-bg { object-position: 72% 30%; }
  .hero-panel { left: 14px; right: 14px; bottom: 46px; top: auto; transform: none; max-width: none; padding: 18px 20px 20px; }
  .hero-title { font-size: 21px; }
  .hero-sub { font-size: 13.5px; }
  .hero-cta { margin-top: 12px; }

  .zones-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .zone { padding: 22px; min-height: 188px; }
  .zone-text { max-width: calc(100% - 186px); }
  .zone-shots img:nth-child(1) { display: none; }
  .zone-shots img:nth-child(2) { right: 16px; top: 24px; width: 104px; height: 104px; }
  .zone-shots img:nth-child(3) { right: 84px; bottom: -18px; width: 92px; height: 92px; transform: rotate(-4deg); }

  .qtile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }

  .brand-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo-media { aspect-ratio: 2 / 1; }
}
