/* ==========================================================================
   Home page sections — pet hero, new arrivals, brand strip, blog preview
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding-bottom: 0;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__orb--1 {
  width: 600px; height: 600px;
  top: -180px; right: -80px;
  background: radial-gradient(circle, rgba(42,125,110,.45), transparent 70%);
}
.hero__orb--2 {
  width: 500px; height: 500px;
  bottom: -200px; left: -100px;
  background: radial-gradient(circle, rgba(212,128,58,.2), transparent 70%);
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: .6;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  padding: 6px 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.04);
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(42,125,110,.6);
}

.hero__title {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  font-weight: 800;
}
.hero__title-accent {
  background: linear-gradient(135deg, #5ed4b8, var(--primary), #d4803a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  color: rgba(255,255,255,.55);
  font-size: 17px;
  line-height: 1.65;
  max-width: 44ch;
  margin-top: 22px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn--hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px -6px rgba(42,125,110,.5);
}
.btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -6px rgba(42,125,110,.6);
}
.btn--hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .2s, color .2s;
}
.btn--hero-outline:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Showcase cards — floating product images */
.hero__showcase {
  position: relative;
  height: 440px;
}
.hero__card {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: default;
}
.hero__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.4);
}
.hero__card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.hero__card-info {
  padding: 12px 16px;
  color: #fff;
}
.hero__card-info span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
}
.hero__card-info b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.hero__card--1 {
  width: 220px;
  top: 0; left: 10%;
  animation: heroFloat1 6s ease-in-out infinite;
}
.hero__card--2 {
  width: 200px;
  top: 60px; right: 0;
  animation: heroFloat2 7s ease-in-out infinite;
}
.hero__card--3 {
  width: 190px;
  bottom: 0; left: 30%;
  animation: heroFloat3 5.5s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes heroFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__card--1, .hero__card--2, .hero__card--3 { animation: none; }
}

/* Stats bar */
.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
}
.hero__stats-inner {
  display: flex;
}
.hero__stat {
  flex: 1;
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.hero__stat:last-child { border-right: none; }
.hero__stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 34px);
  color: #fff;
  letter-spacing: -.02em;
}
.hero__stat span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
}

/* ---------- 6-column category grid ---------- */
.cat-grid--6 {
  grid-template-columns: repeat(6, 1fr);
}
.cat-grid--6 .cat-card {
  aspect-ratio: 1 / 1.3;
}

/* ---------- New Arrivals — horizontal scroll ---------- */
.arrivals-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--gutter) 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.arrivals-scroll::-webkit-scrollbar { height: 6px; }
.arrivals-scroll::-webkit-scrollbar-track { background: transparent; }
.arrivals-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.arrivals-scroll__track {
  display: flex;
  gap: 22px;
  width: max-content;
}
.arrivals-scroll .prod-card {
  width: 260px;
  flex: 0 0 260px;
  aspect-ratio: 1 / 1.3;
}

/* ---------- Brand strip / marquee ---------- */
.brand-strip {
  background: var(--stone-1);
  border-radius: var(--r-card);
  padding: 30px 34px;
  overflow: hidden;
}
.brand-strip h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brand-strip__marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-strip__track {
  display: flex;
  width: max-content;
  animation: brandMarq 30s linear infinite;
}
.brand-strip__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.brand-strip__group span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--ink);
  opacity: .5;
  white-space: nowrap;
}
@keyframes brandMarq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-strip__track { animation: none; } }

/* ---------- Blog card (home preview + listing) ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px -8px rgba(26,42,46,.12);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.blog-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6eee4;
}
.blog-card__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-card__img img {
  transform: translateY(-3px);
}
.blog-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  background: var(--mint-1);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.blog-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.blog-card__excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: auto;
  padding-top: 14px;
}

.blog-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- 4-column benefits ---------- */
.benefits--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 60px; }
  .hero__showcase { height: 320px; max-width: 500px; margin: 0 auto; }
  .hero__card--1 { width: 180px; }
  .hero__card--2 { width: 160px; }
  .hero__card--3 { width: 150px; }
  .cat-grid--6 { grid-template-columns: repeat(3, 1fr); }
  .blog-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .benefits--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero__inner { padding-top: 100px; padding-bottom: 48px; }
  .hero__showcase { display: none; }
  .hero__stats-inner { flex-wrap: wrap; }
  .hero__stat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .hero__stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.06); }
  .hero__stat:nth-child(even) { border-right: none; }
  .hero__stat:nth-child(n+3) { border-bottom: none; }
  .cat-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--3 { grid-template-columns: 1fr; }
  .benefits--4 { grid-template-columns: 1fr; }
  .arrivals-scroll .prod-card { width: 220px; flex: 0 0 220px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 34px; }
  .hero__actions { flex-direction: column; }
  .btn--hero, .btn--hero-outline { width: 100%; justify-content: center; }
  .cat-grid--6 { grid-template-columns: 1fr; }
}

/* Override home nav — transparent over dark hero, white text */
body[data-page="home"] .nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
body[data-page="home"] .nav__inner {
  max-width: var(--maxw);
  padding: 0 var(--gutter);
  height: 74px;
  align-items: center;
}
body[data-page="home"] .nav__left {
  background: none;
  margin-left: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-page="home"] .nav__left .nav__links { margin-left: 42px; }
body[data-page="home"] .nav__left .nav__links a { color: rgba(255,255,255,.7); }
body[data-page="home"] .nav__left .nav__links a:hover,
body[data-page="home"] .nav__left .nav__links a.active { color: #fff; }
body[data-page="home"] .nav__left .brand { color: #fff; }
body[data-page="home"] .nav__right {
  padding-top: 0;
  margin-right: 0;
}
body[data-page="home"] .nav__right .cart,
body[data-page="home"] .nav__right .cart .nav__icon { color: #fff; }
body[data-page="home"] .nav__right .cart .cart__count { background: var(--primary); color: #fff; }
body[data-page="home"] .nav__right .btn--primary {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
body[data-page="home"] .nav__right .btn--primary:hover {
  background: rgba(255,255,255,.18);
}
body[data-page="home"] .nav__toggle span,
body[data-page="home"] .nav__toggle span::before,
body[data-page="home"] .nav__toggle span::after { background: #fff; }
