/* Jacks Pet Avenue - site-specific styling.
   Small, friendly neighborhood pet-shop aesthetic: sky blue + lime green,
   rounded geometry, jagged torn-paper dividers, minimal restrained motion. */

body { font-family: var(--font-body); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--color-dark);
  color: #fff;
  font-size: 0.85rem;
}
.topbar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block: 0.45rem;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}
.topbar__item:hover { opacity: 1; text-decoration: underline; }
.icon-inline { width: 14px; height: 14px; fill: currentColor; flex: none; }
@media (max-width: 560px) {
  .topbar__item--address { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.logo__line1 { font-size: 1.35rem; }
.logo__line2 { font-size: 1.05rem; color: var(--color-accent); }

.nav-links { gap: var(--space-3); }
.nav-links a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--color-accent); }
.nav-cta {
  background: var(--color-accent-2);
  color: #22321a !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--color-accent) !important; color: #fff !important; }

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    padding: var(--space-2) var(--space-3) var(--space-3);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .nav-cta { display: inline-block; margin-top: var(--space-1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.06);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,26,0.55) 0%, rgba(20,24,26,0.72) 55%, rgba(20,24,26,0.88) 100%);
}
.hero__content { position: relative; z-index: 1; padding-block: var(--space-5); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-2);
  margin-bottom: var(--space-1);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, var(--font-size-h1));
  margin-bottom: var(--space-2);
}
.hero__subhead { font-size: 1.15rem; max-width: 32rem; margin-bottom: var(--space-3); }
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn--ghost:hover { background: #fff; color: var(--color-ink); }

/* On narrow phones the storefront sign photo (1600x1200, landscape) sits in
   a much taller/narrower box than at desktop, so object-fit: cover has to
   zoom in hard to fill it - cropping the sign's text on both edges. Switch
   to a shorter box + object-fit: contain so the whole sign is always shown
   uncropped, letterboxed against the dark scrim instead of cut off. */
@media (max-width: 640px) {
  .hero { min-height: 50vh; }
  .hero__media { background: var(--color-dark); }
  .hero__media img {
    object-fit: contain;
    object-position: center center;
    transform: none;
    animation: none;
  }
}

/* torn paper bottom edge under the hero photo */
.torn-edge { position: relative; height: 46px; margin-top: -46px; z-index: 2; }
.torn-edge--bottom {
  background: var(--color-bg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 93%, 95% 100%, 90% 93%, 85% 100%, 80% 93%,
    75% 100%, 70% 93%, 65% 100%, 60% 93%, 55% 100%, 50% 93%, 45% 100%, 40% 93%,
    35% 100%, 30% 93%, 25% 100%, 20% 93%, 15% 100%, 10% 93%, 5% 100%, 0% 93%);
}

/* torn paper full-bleed divider bands */
.torn-band {
  height: 90px;
  clip-path: polygon(
    0% 0%, 5% 22%, 10% 0%, 15% 22%, 20% 0%, 25% 22%, 30% 0%, 35% 22%, 40% 0%, 45% 22%,
    50% 0%, 55% 22%, 60% 0%, 65% 22%, 70% 0%, 75% 22%, 80% 0%, 85% 22%, 90% 0%, 95% 22%, 100% 0%,
    100% 100%, 95% 78%, 90% 100%, 85% 78%, 80% 100%, 75% 78%, 70% 100%, 65% 78%, 60% 100%,
    55% 78%, 50% 100%, 45% 78%, 40% 100%, 35% 78%, 30% 100%, 25% 78%, 20% 100%, 15% 78%, 10% 100%, 5% 78%, 0% 100%
  );
}
.torn-band--lime { background: var(--color-accent-2); }
.torn-band--sky { background: var(--color-accent); }

/* ---------- Section heading / intro ---------- */
.section-heading { text-align: center; margin-bottom: var(--space-3); }
.intro {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

/* ---------- Icon badges ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e5f7ff;
  background: color-mix(in srgb, var(--color-accent) 12%, white);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.icon-badge--lg { width: 76px; height: 76px; }
.icon-badge--dark { background: rgba(255,255,255,0.08); color: var(--color-accent-2); }
.icon-line { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge--lg .icon-line { width: 36px; height: 36px; }

/* welcome icon cards */
.icon-card { text-align: center; }
.icon-card p { color: var(--color-muted); }

/* offer alternating rows */
.offer-list { display: flex; flex-direction: column; gap: var(--space-4); max-width: 46rem; margin-inline: auto; }
.offer-row { display: flex; align-items: center; gap: var(--space-3); }
.offer-row--rev { flex-direction: row-reverse; text-align: right; }
.offer-row p { color: var(--color-muted); margin: 0; }
.offer-row h3 { margin-bottom: 0.35rem; }
@media (max-width: 640px) {
  .offer-row, .offer-row--rev { flex-direction: column; text-align: center; }
}

/* category row */
.categories { background: var(--color-surface); }
.cat-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cat-item { text-align: center; width: 110px; }
.icon-badge--cat { background: #fff; box-shadow: var(--shadow-soft); }
.cat-item__label { display: block; font-weight: 700; font-family: var(--font-display); }

/* product grid */
.product-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-card h3 { font-size: 1rem; padding: var(--space-2); margin: 0; text-align: center; }
@media (max-width: 992px) { .product-grid { --grid-cols: 2 !important; } }

/* trust badges dark band */
.trust { background: var(--color-dark); color: #fff; }
.trust-card { text-align: center; }
.trust-card p { color: rgba(255,255,255,0.72); }
.trust-card h3 { color: #fff; }

/* gallery */
.gallery-item { display: block; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); cursor: zoom-in; }
.gallery-item img { aspect-ratio: 1 / 1; object-fit: cover; transition: transform var(--dur-med) var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* promise / testimonial band */
.promise { background: var(--color-surface); text-align: center; }
.promise__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  max-width: 42rem;
  margin: 0 auto var(--space-2);
  color: var(--color-ink);
}
.promise__cite { color: var(--color-muted); font-weight: 700; margin-bottom: var(--space-2); }
.promise__dots { display: flex; gap: 0.4rem; justify-content: center; }
.promise__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); opacity: 0.35; }
.promise__dots span:first-child { opacity: 1; }

/* blog */
.blog-card { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform var(--dur-med) var(--ease); }
.blog-card:hover { transform: translateY(-6px); }
.blog-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card__body { padding: var(--space-3); }
.blog-card__body p { color: var(--color-muted); margin: 0; font-size: 0.92rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.contact-card--cta { background: var(--color-accent); color: #fff; }
.contact-card--cta .btn { background: #fff; color: var(--color-accent); margin-top: var(--space-2); }
.contact-card a { color: inherit; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.85); padding-block: var(--space-4) var(--space-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
.footer__logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.6rem; font-family: var(--font-display); }
.footer__links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__links a, .site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer__links a:hover, .site-footer a:hover { color: var(--color-accent-2); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-2); font-size: 0.85rem; }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion: scroll reveals (restrained, per low-motion dial) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
  .btn, .product-card, .blog-card, .gallery-item img { transition: none; }
}
