/* ===== Homepage — Prime Haven Market ===== */
.home { --hm-deep: #10231A; --hm-forest: #1A5D3A; --hm-leaf: #4FAF7A; --hm-gold: #F3D27A; }
.hm-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hm-section { padding: clamp(72px, 9vw, 128px) 0; }
.hm-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--hm-forest); margin-bottom: 14px; }
.hm-head { text-align: center; margin: 0 auto clamp(36px, 5vw, 60px); max-width: 760px; }
.hm-head.left { text-align: left; margin-left: 0; }
.hm-head h2, .hm-final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; color: var(--color-text); margin: 0; }
.hm-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.hm-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.hm-btn:hover svg { transform: translateX(3px); }
.hm-btn-primary { background: var(--hm-leaf); color: var(--hm-deep); box-shadow: 0 10px 30px rgba(79,175,122,.35); }
.hm-btn-primary:hover { background: #63c48d; transform: translateY(-2px); }
.hm-btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.hm-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--hm-forest); text-decoration: none; }
.hm-link svg { width: 18px; height: 18px; transition: transform .2s; } .hm-link:hover svg { transform: translateX(4px); }
.hm-center { text-align: center; margin-top: 28px; }

/* --- Hero --- */
.hm-hero { position: relative; overflow: hidden; background: var(--hm-deep); color: #fff; padding: clamp(56px, 7vw, 96px) 0 0; }
.hm-hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, rgba(79,175,122,.28), transparent 70%), radial-gradient(40% 50% at 10% 10%, rgba(26,93,58,.6), transparent 70%); }
.hm-hero-glow::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 40%, #000, transparent); mask-image: radial-gradient(70% 80% at 60% 40%, #000, transparent); }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: min(70vh, 640px); }
.hm-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.hm-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-leaf); box-shadow: 0 0 0 4px rgba(79,175,122,.25); }
.hm-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: .94; letter-spacing: -.045em; margin: 26px 0 22px; color: #fff; }
.hm-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--hm-leaf), #a9e3c1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.72); max-width: 34em; margin: 0 0 34px; }
.hm-signin { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }
.hm-signin a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

.hm-hero-art { position: relative; height: clamp(380px, 46vw, 580px); }
.hm-orb { position: absolute; left: 50%; top: 46%; width: min(92%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a7a4b, #165a35 55%, #0c3a22); box-shadow: 0 40px 120px rgba(0,0,0,.45), inset 0 0 60px rgba(0,0,0,.25); }
.hm-orb-ring { position: absolute; inset: 14px; border-radius: 50%; border: 6px solid #ABED3B; opacity: .9; }
.hm-orb-paw { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); width: 64px; height: 64px; color: #ABED3B; opacity: .9; }
.hm-orb-paw svg { width: 100%; height: 100%; fill: #ABED3B; stroke: none; }
.hm-pet { position: absolute; bottom: 21%; height: 62%; width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); animation: hmPetIn 1s cubic-bezier(.2,1.2,.4,1) both; }
.hm-dog { left: 12%; } .hm-cat { right: 13%; height: 60%; animation-delay: .12s; }
@keyframes hmPetIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hm-ledge { position: absolute; left: 50%; bottom: 17%; width: min(78%, 440px); height: 22px; transform: translateX(-50%); border-radius: 12px; background: linear-gradient(180deg, #0f3a24, #0a2716); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.hm-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 13px; animation: hmFloat 6s ease-in-out infinite; }
.hm-chip b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hm-chip span { color: rgba(255,255,255,.75); }
.hm-chip svg { width: 18px; height: 18px; color: var(--hm-leaf); }
.hm-chip.c1 { left: 0; top: 10%; } .hm-chip.c2 { right: 0; top: 4%; animation-delay: -2s; } .hm-chip.c3 { left: 50%; bottom: 3%; transform: translateX(-50%); animation: none; white-space: nowrap; }
@keyframes hmFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hm-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(30px, 4vw, 48px) 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.hm-stats div { padding: 26px 0 30px; text-align: left; }
.hm-stats div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.1); }
.hm-stats dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.hm-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.03em; color: #fff; }

/* --- Brands marquee --- */
.hm-brands { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--color-border); overflow: hidden; background: #fff; }
[data-theme='dark'] .hm-brands { background: var(--color-surface); }
.hm-overline { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-faint); margin: 0 0 28px; }
.hm-mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hm-mq + .hm-mq { margin-top: 14px; }
.hm-mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: hmMq 60s linear infinite; }
.hm-mq.rev .hm-mq-track { animation-direction: reverse; animation-duration: 70s; }
.hm-mq span { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em; color: var(--color-text); opacity: .82; white-space: nowrap; }
.hm-mq i { font-style: normal; color: var(--hm-leaf); font-size: 14px; }
.hm-mq:hover .hm-mq-track { animation-play-state: paused; }
@keyframes hmMq { to { transform: translateX(-50%); } }

/* --- Departments --- */
.hm-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-dept { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; min-height: 190px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s, background .25s; }
.hm-dept:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16,35,26,.1); border-color: var(--hm-leaf); }
.hm-dept-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e8f3ec; color: var(--hm-forest); margin-bottom: auto; }
[data-theme='dark'] .hm-dept-ic { background: rgba(79,175,122,.14); color: var(--hm-leaf); }
.hm-dept-ic svg { width: 24px; height: 24px; }
.hm-dept-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-top: 26px; }
.hm-dept-n { font-size: 14px; color: var(--color-text-muted); }
.hm-dept-go { position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--hm-deep); color: #fff; opacity: 0; transform: translateX(-6px); transition: all .25s; }
.hm-dept-go svg { width: 16px; height: 16px; }
.hm-dept:hover .hm-dept-go { opacity: 1; transform: none; }
.hm-dept:first-child { grid-column: span 2; background: var(--hm-deep); color: #fff; border-color: var(--hm-deep); }
.hm-dept:first-child .hm-dept-ic { background: rgba(79,175,122,.2); color: var(--hm-leaf); }
.hm-dept:first-child .hm-dept-n { color: rgba(255,255,255,.6); }
.hm-dept:first-child .hm-dept-go { background: var(--hm-leaf); color: var(--hm-deep); }

/* --- Why --- */
.hm-why { background: var(--color-surface-2); }
.hm-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hm-why-img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(16,35,26,.18); }
.hm-why-img > img { width: 100%; height: 100%; object-fit: cover; }
.hm-why-badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(16,35,26,.82); backdrop-filter: blur(10px); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hm-why-badge img { width: 44px; height: 44px; border-radius: 50%; }
.hm-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.hm-points li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.hm-points li > span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--hm-deep); color: var(--hm-leaf); }
.hm-points svg { width: 24px; height: 24px; }
.hm-points h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 6px; color: var(--color-text); }
.hm-points p { color: var(--color-text-muted); line-height: 1.6; margin: 0; }

/* --- Map --- */
.hm-map .map-zip { margin-bottom: 24px; }

/* --- Journey spacing --- */
.hm-journey { padding-top: clamp(40px, 6vw, 80px) !important; }

/* --- Final CTA --- */
.hm-final { position: relative; overflow: hidden; background: var(--hm-deep); color: #fff; padding: clamp(64px, 8vw, 110px) 0 0; }
.hm-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 60%, rgba(79,175,122,.25), transparent 70%); }
.hm-final-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 30px; }
.hm-final-grid > div:first-child { padding-bottom: clamp(64px, 8vw, 110px); }
.hm-final h2 { color: #fff; }
.hm-final p { color: rgba(255,255,255,.7); font-size: 1.15rem; margin: 18px 0 30px; max-width: 32em; }
.hm-final-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hm-final-art img { height: clamp(180px, 22vw, 300px); width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.hm-final-art img + img { margin-left: -24px; height: clamp(170px, 21vw, 285px); }

/* --- Responsive --- */
@media (max-width: 999px) {
  .hm-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hm-hero-copy { text-align: center; } .hm-lead { margin-left: auto; margin-right: auto; } .hm-cta { justify-content: center; }
  .hm-hero-art { height: clamp(320px, 80vw, 460px); }
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
  .hm-stats div:nth-child(3) { padding-left: 0; border-left: 0; } .hm-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .hm-depts { grid-template-columns: repeat(2, 1fr); }
  .hm-why-grid, .hm-final-grid { grid-template-columns: 1fr; }
  .hm-why-img { aspect-ratio: 4 / 3; }
  .hm-final-grid > div:first-child { padding-bottom: 0; text-align: center; } .hm-final p { margin-left: auto; margin-right: auto; }
  .hm-head.left { text-align: center; margin-left: auto; }
}
@media (max-width: 560px) {
  .hm-btn { height: 50px; padding: 0 20px; font-size: 15px; } .hm-cta .hm-btn { flex: 1 1 100%; justify-content: center; }
  .hm-chip { padding: 9px 12px; font-size: 12px; } .hm-chip b { font-size: 18px; } .hm-chip.c3 { font-size: 11.5px; }
  .hm-depts { grid-template-columns: 1fr 1fr; gap: 10px; } .hm-dept { padding: 18px; min-height: 150px; } .hm-dept-name { font-size: 1.05rem; margin-top: 16px; } .hm-dept:first-child { grid-column: span 2; }
  .hm-stats div + div { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hm-mq-track, .hm-chip, .hm-pet { animation: none; } }

/* --- Centered hero (no artwork) --- */
.hm-hero-grid { grid-template-columns: 1fr; text-align: center; min-height: min(64vh, 620px); }
.hm-hero-copy { max-width: 980px; margin: 0 auto; }
.hm-hero h1 { font-size: clamp(3.2rem, 9vw, 8rem); }
.hm-hero .hm-lead { margin-left: auto; margin-right: auto; max-width: 38em; }
.hm-hero .hm-cta { justify-content: center; }
.hm-hero-glow { background: radial-gradient(55% 60% at 50% 45%, rgba(79,175,122,.24), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(26,93,58,.6), transparent 70%), radial-gradient(40% 50% at 90% 100%, rgba(26,93,58,.5), transparent 70%); }
.hm-hero-glow::after { -webkit-mask-image: radial-gradient(70% 80% at 50% 45%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 45%, #000, transparent); }

/* --- Compact departments row --- */
.hm-depts-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 34px auto 0; padding: 0 20px; max-width: 1100px; }
.hm-depts-row span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); margin-right: 6px; }
.hm-depts-row a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none; transition: border-color .2s, background .2s; }
.hm-depts-row a:hover { border-color: #4FAF7A; background: #e8f3ec; }

/* --- Mascots peeking from the sides of the hero --- */
.hm-hero-grid { position: relative; }
.hm-side-pet { position: absolute; bottom: 0; height: clamp(150px, 19vw, 260px); width: auto; z-index: 1; pointer-events: none; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); animation: hmSideIn 1s cubic-bezier(.2,1.2,.4,1) .2s both; }
.hm-side-pet.dog { left: -4%; }
.hm-side-pet.cat { right: -4%; animation-delay: .32s; }
.hm-hero-copy { position: relative; z-index: 2; }
@keyframes hmSideIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@media (max-width: 999px) { .hm-side-pet { height: 120px; } .hm-side-pet.dog { left: -4%; } .hm-side-pet.cat { right: -4%; } .hm-hero-grid { padding-bottom: 110px; } }
@media (max-width: 560px) { .hm-side-pet { height: 96px; } .hm-hero-grid { padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .hm-side-pet { animation: none; } }

/* --- Hero photo layer --- */
.hm-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: grayscale(.2) contrast(1.05); }
.hm-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,35,26,.55), rgba(16,35,26,.85) 70%, #10231A); }

/* --- Photo bento --- */
.hm-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px; }
.hm-tile { position: relative; overflow: hidden; border-radius: 24px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; text-decoration: none; background: #10231A var(--img) center / cover no-repeat; isolation: isolate; }
.hm-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,25,17,.85)); transition: opacity .3s; }
.hm-tile::after { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hm-tile:hover::after { transform: scale(1.06); }
.hm-tile.t-big { grid-row: span 2; }
.hm-tile span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7ee2a8; }
.hm-tile b { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.hm-tile.t-big b { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 14em; }
@media (max-width: 899px) { .hm-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; } .hm-tile.t-big { grid-column: span 2; grid-row: auto; } }

/* --- Testimonials (hidden until real quotes are added) --- */
.hm-testi[hidden] { display: none !important; }
.hm-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm-quotes figure { margin: 0; padding: 28px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.hm-quotes blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--color-text); }
.hm-quotes figcaption b { display: block; color: var(--color-text); } .hm-quotes figcaption span { font-size: 14px; color: var(--color-text-muted); }
@media (max-width: 899px) { .hm-quotes { grid-template-columns: 1fr; } }

/* --- Why section without image --- */
.hm-why-solo { grid-template-columns: 1fr !important; max-width: 1100px; }
.hm-why-solo .hm-head.left { text-align: center; margin: 0 auto 40px; }
.hm-why-solo .hm-points { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hm-why-solo .hm-points li { grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 899px) { .hm-why-solo .hm-points { grid-template-columns: 1fr; } .hm-why-solo .hm-points li { grid-template-columns: 52px 1fr; } }

/* --- Hero mascots sit on the stats line and never cover the buttons --- */
.hm-hero-grid { padding-bottom: 0; }
.hm-side-pet { bottom: 0 !important; }
@media (max-width: 999px) {
  .hm-hero-grid { padding-bottom: 104px !important; }
  .hm-side-pet { height: 96px !important; }
  .hm-side-pet.dog { left: 0 !important; } .hm-side-pet.cat { right: 0 !important; }
}
/* mascots removed from homepage: drop reserved space */
@media (max-width: 899px) { .hm-hero .hm-wrap, .hm-hero-grid { padding-bottom: 0 !important; } }
.hm-final-grid { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
.hm-final-grid p { margin-inline: auto; }
.hm-final-grid .hm-cta { justify-content: center; }
/* breathing room under the final CTA buttons */
.hm-final { padding-bottom: clamp(56px, 8vw, 96px) !important; }
.hm-final-grid > div:first-child { padding-bottom: 0 !important; }
.hm-final { padding-bottom: clamp(64px, 8vw, 110px) !important; }
/* order terms strip */
.hm-terms { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); overflow: hidden; }
.hm-terms div { padding: 18px 22px; } .hm-terms div + div { border-left: 1px solid var(--color-border); }
.hm-terms dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 6px; }
.hm-terms dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--color-text); }
.hm-terms small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--color-text-muted); }
@media (max-width: 699px) { .hm-terms { grid-template-columns: 1fr 1fr; } .hm-terms div:nth-child(3) { border-left: 0; } .hm-terms div:nth-child(n+3) { border-top: 1px solid var(--color-border); } .hm-terms div { padding: 14px 16px; } .hm-terms dd { font-size: 1.3rem; } }
