/* Customer landing page (docs/index.html) - deliberately its OWN stylesheet, separate from
   css/styles.css (the internal staff-portal look). Dark, gradient-accented theme per direct
   request to mimic a reference "Ai Creative" SaaS landing page (dark navy background, teal-to-
   purple gradient CTAs/accents, colored feature headings, glowing hero visual panel) - reusing
   its color/typography language for RS Pet Stop's own content rather than its literal layout. */

:root {
  --land-bg: #060a14;
  --land-bg-alt: #0a0f1f;
  --land-surface: #10162a;
  --land-surface-2: #161d36;
  --land-ink: #f5f7ff;
  --land-ink-muted: #93a0c2;
  --land-border: #232a45;
  --land-teal: #16e0bd;
  --land-purple: #8b5cf6;
  --land-pink: #ff4fd0;
  --land-gradient: linear-gradient(90deg, var(--land-teal), var(--land-purple));
  --land-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--land-bg);
  color: var(--land-ink);
  -webkit-font-smoothing: antialiased;
}

/* Full-page fixed logo background - same technique as the staff portal's Dashboard
   (body.app-has-photo-bg in css/styles.css / applyAppBackground in js/companyBranding.js): a
   fixed (non-scrolling) background image with a tint overlay on top, so it reads as a faint
   brand touch rather than a photo you're meant to look at. Set via js/landing.js once
   CompanyInfo.LogoUrl loads. The dashboard tints toward white (light theme); this tints toward
   var(--land-bg) instead since this page is dark.
   Centered per direct request ("embedded in the middle"), at a size well short of `cover` (which
   blew the logo up to poster size, cropping its bottom edge/wordmark off-viewport) but bigger
   than a small corner mark - the whole square logo, wordmark included, shows uncropped, sitting
   centered behind the hero content. */
body.land-has-logo-bg {
  background-size: min(560px, 46vw);
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.land-has-logo-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.8);
  z-index: 0;
  pointer-events: none;
}

.land-topbar,
.land-hero,
.land-section,
.land-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.land-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ---- Top bar ---- */
/* Sticky, full-width strip (the inner .land-wrap keeps content aligned with the page) - stays in
   reach while scrolling so customers can always jump to a section or Order Now. */
.land-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 20, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--land-border);
}

.land-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.land-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  flex: 0 0 auto;
}

.land-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--land-surface);
}

.land-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.land-nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--land-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.land-nav-link:hover,
.land-nav-link.active {
  color: var(--land-ink);
  background: var(--land-surface-2);
}

.land-nav-link.active {
  box-shadow: inset 0 -2px 0 var(--land-teal);
}

.land-staff-link {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--land-ink-muted);
  text-decoration: none;
  border: 1px solid var(--land-border);
  padding: 7px 12px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.land-staff-link:hover {
  border-color: var(--land-teal);
  color: var(--land-ink);
}

.land-nav .land-btn-sm {
  margin-left: 4px;
}

/* Phone menu button (hidden on wide screens) */
.land-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--land-border);
  border-radius: 12px;
  background: var(--land-surface);
  cursor: pointer;
}

.land-menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--land-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.land-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.land-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.land-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .land-menu-btn {
    display: flex;
  }

  .land-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(6, 10, 20, 0.97);
    border-bottom: 1px solid var(--land-border);
    box-shadow: var(--land-shadow);
  }

  .land-nav.open {
    display: flex;
  }

  .land-nav-link {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .land-nav-link.active {
    box-shadow: inset 3px 0 0 var(--land-teal);
  }

  .land-staff-link,
  .land-nav .land-btn-sm {
    margin: 8px 0 0;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
  }
}

/* ---- Buttons ---- */
.land-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.land-btn:hover {
  transform: translateY(-2px);
}

.land-btn-primary {
  background: var(--land-gradient);
  color: #04101a;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.land-btn-secondary {
  background: transparent;
  color: var(--land-ink);
  border-color: var(--land-border);
}

.land-btn-secondary:hover {
  border-color: var(--land-teal);
}

.land-btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.land-inline-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--land-teal);
  text-decoration: none;
  font-weight: 600;
}

.land-inline-link:hover {
  text-decoration: underline;
}

.land-gradient-text {
  background: var(--land-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.land-accent-teal { color: var(--land-teal); }
.land-accent-purple { color: var(--land-purple); }
.land-accent-pink { color: var(--land-pink); }

/* ---- Hero ---- */
/* No opaque base color here (unlike the other sections' backgrounds below) - only the two
   translucent glow spots, both fading to fully transparent - so the fixed logo background on
   <body> (body.land-has-logo-bg above) shows through the hero instead of being hidden behind it. */
.land-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(22, 224, 189, 0.16), transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.2), transparent 42%);
  padding: 64px 0 80px;
}

.land-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, black 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, black 40%, transparent 78%);
  pointer-events: none;
}

.land-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.land-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--land-teal);
  background: rgba(22, 224, 189, 0.12);
  border: 1px solid rgba(22, 224, 189, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.land-hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
}

.land-hero-copy p.lead {
  font-size: 1.05rem;
  color: var(--land-ink-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.land-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.land-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--land-ink-muted);
}

.land-stats-row strong {
  color: var(--land-ink);
}

.land-stats-dot {
  color: var(--land-border);
}

.land-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.land-hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--land-gradient);
  filter: blur(90px);
  opacity: 0.35;
}

.land-hero-logo-frame {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 32px;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  box-shadow: var(--land-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.land-hero-logo-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  padding: 1px;
  background: var(--land-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

.land-hero-logo-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

/* ---- Section shells ---- */
.land-section {
  padding: 56px 0;
}

.land-section.land-visit {
  background: var(--land-bg-alt);
  border-top: 1px solid var(--land-border);
  border-bottom: 1px solid var(--land-border);
}

.land-section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--land-ink);
}

.land-section-sub {
  text-align: center;
  color: var(--land-ink-muted);
  margin: 0 0 32px;
}

/* ---- Feature cards ---- */
.land-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.land-feature-card {
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.land-feature-card:hover {
  border-color: var(--land-purple);
  transform: translateY(-3px);
}

.land-feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--land-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.land-feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.land-feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--land-ink-muted);
  line-height: 1.5;
}

/* ---- Shop-by-category pills (dynamic, see js/landing.js loadCategoryPills) ---- */
.land-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.land-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  color: var(--land-ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.land-pill:hover {
  border-color: var(--land-teal);
  color: var(--land-ink);
}

/* ---- Featured products (dynamic, real catalog photos - see js/landing.js loadFeaturedProducts) ---- */
.land-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.land-product-card {
  display: block;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.land-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--land-purple);
}

.land-product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--land-surface-2);
}

.land-product-info {
  padding: 12px 14px;
}

.land-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.land-product-price {
  font-size: 0.85rem;
  color: var(--land-teal);
  font-weight: 700;
}

/* ---- Custom build photo gallery (static real photos, see docs/index.html) ---- */
.land-build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.land-build-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--land-border);
  background: var(--land-surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.land-build-card:hover {
  border-color: var(--land-teal);
  transform: translateY(-3px);
}

.land-build-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.land-build-caption {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--land-ink);
  text-align: center;
}

/* ---- Visit us / branches ---- */
.land-branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.land-branch-card {
  border: 1px solid var(--land-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--land-surface);
}

.land-branch-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.land-branch-body {
  padding: 20px 22px 22px;
}

.land-branch-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--land-teal);
}

.land-branch-card p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--land-ink-muted);
}

.land-hours-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--land-teal);
  background: rgba(22, 224, 189, 0.08);
  border: 1px solid rgba(22, 224, 189, 0.2);
  border-radius: 12px;
  padding: 14px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.land-footer {
  padding: 32px 0 40px;
  text-align: center;
  color: var(--land-ink-muted);
  font-size: 0.85rem;
}

.land-footer a {
  color: var(--land-teal);
  font-weight: 600;
  text-decoration: none;
}

.land-footer a:hover {
  text-decoration: underline;
}

/* "Owned and operated by ... DTI-registered" line - shown on every public page's footer. */
.land-footer-owner {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.land-social-row {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .land-hero-grid {
    grid-template-columns: 1fr;
  }

  .land-hero-visual {
    order: -1;
    min-height: 200px;
  }

  .land-hero-logo-frame {
    width: 180px;
    height: 180px;
    padding: 26px;
  }

  .land-hero-glow {
    width: 220px;
    height: 220px;
    filter: blur(70px);
  }

  .land-hero-copy p.lead {
    max-width: none;
  }
}

/* ---- Navigation helpers (clickable offer cards, section CTAs, branch actions) ---- */
a.land-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

a.land-feature-card p {
  flex: 1 1 auto;
}

.land-card-cta {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--land-teal);
}

a.land-feature-card:hover .land-card-cta {
  text-decoration: underline;
}

.land-pill-row-collapsed .land-pill:nth-child(n + 13) {
  display: none;
}

.land-pill-more-row {
  display: flex;
  justify-content: center;
}

.land-pill-more {
  margin-top: 14px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--land-teal);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.land-pill-more:hover {
  text-decoration: underline;
}

.land-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.land-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.land-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

/* In-page jumps land below the sticky top bar instead of under it. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* In-store-only categories - shown for "what we sell", but not links (see loadCategoryPills). */
.land-pill-static {
  cursor: default;
  border-style: dashed;
}

.land-pill-static:hover {
  border-color: var(--land-border);
  color: var(--land-ink-muted);
}
