/* ──────────────────────────────────────────────────────────────────
   MEDIUM: Web — marketing site chrome
   Load AFTER foundation + brand. Scope: page-level chrome only —
   reset, containers, buttons, nav, hero, section frame, footer,
   reveal. Brand-agnostic — colors come from the loaded brand layer.

   Ported 2026-06-06 from the shipped Pet site:
     SOURCE → Projects/Websites/shopdot-pet-v2/site.css
   Page-specific sections (how-it-works, insider cards, marquee rows,
   video modal, sell grid, brands pitch, …) stay in the project — they
   are content, not chrome. Class names kept verbatim so shipped HTML
   works unchanged.

   Marketing vs product (UPDATED 2026-06-06): the app/portal now has
   its own chrome — different nav, footer, elements. It lives in
   media/product.css (sibling, NOT an import of this file). This file
   is marketing/landing/website chrome only. The earlier 2026-06
   "product reuses web wholesale" decision is superseded.
   ────────────────────────────────────────────────────────────────── */

/* ── Base ───────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--sd-bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ── Containers ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--sd-container);      /* 1170px */
  margin: 0 auto;
  padding: 0 24px;
}
.container-md { max-width: var(--sd-container-md); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--sd-radius-sm);
  font-weight: var(--sd-fw-medium);
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform var(--sd-dur-fast) var(--sd-ease),
              background-color var(--sd-dur-base) var(--sd-ease),
              box-shadow var(--sd-dur-base) var(--sd-ease),
              color var(--sd-dur-base) var(--sd-ease);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn-primary {
  background: var(--sd-primary);
  color: #fff;
  border-color: var(--sd-primary-700);
  box-shadow: var(--sd-shadow-xs);
}
.btn-primary:hover { background: var(--sd-primary-700); color: #fff; }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

/* alias of foundation's .btn-ghost-on-dark — kept for shipped HTML */
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.85);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--sd-fg);
  border-color: var(--sd-border-strong);
  box-shadow: var(--sd-shadow-xs);
}
.btn-outline:hover { background: var(--sd-neutral-50); }

.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }

/* ── Top nav ────────────────────────────────────── */
/* Transparent over the dark hero; solidifies on scroll (.is-scrolled,
   set by page JS). Light logo + light links at top, dark on scroll. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 100;
  background: rgba(255,255,255,0);
  transition: background-color var(--sd-dur-slow) var(--sd-ease),
              box-shadow var(--sd-dur-slow) var(--sd-ease),
              border-color var(--sd-dur-slow) var(--sd-ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--sd-border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--sd-container-wide);   /* 1568px */
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo { height: 44px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: var(--sd-fw-medium);
  transition: color var(--sd-dur-fast) var(--sd-ease);
}
.nav-links a:hover { color: #fff; }
.nav.is-scrolled .nav-links a { color: var(--sd-neutral-950); }
.nav.is-scrolled .nav-links a:hover { color: var(--sd-primary); }
/* Active nav link — class="active" on the current page's link. Orange on
   every page, per the canonical nav contract. */
.nav .nav-links a.active { color: var(--sd-primary); }
.nav .nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--sd-primary);
  border-radius: 2px;
  margin-top: 6px;
}

.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav .login-link {
  font-size: 15px;
  font-weight: var(--sd-fw-medium);
  color: rgba(255,255,255,0.92);
  padding: 10px 16px;
}
.nav.is-scrolled .login-link { color: var(--sd-neutral-950); }
.nav .login-link:hover { color: #fff; }
.nav.is-scrolled .login-link:hover { color: var(--sd-primary); }
/* Logo swap on scroll */
.nav .logo-light { display: block; }
.nav .logo-dark  { display: none; }
.nav.is-scrolled .logo-light { display: none; }
.nav.is-scrolled .logo-dark  { display: block; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 64vh;
  padding: var(--sd-hero-pad-top) 24px var(--sd-hero-pad-bottom);
  background: var(--sd-surface-dark, #2c2f32);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Layered photo backdrop */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center 35%;
  will-change: transform;
  transform: scale(1.08);
  animation: heroDrift 28s var(--sd-ease) infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44,47,50,0.78) 0%, rgba(44,47,50,0.62) 40%, rgba(44,47,50,0.85) 100%),
    linear-gradient(90deg, rgba(44,47,50,0.55) 0%, rgba(44,47,50,0.25) 50%, rgba(44,47,50,0.55) 100%);
}
@keyframes heroDrift {
  0%   { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
  100% { transform: scale(1.14) translate3d( 1%,  0.8%, 0); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding-top: 16px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: var(--sd-fw-medium);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sd-primary);
  box-shadow: 0 0 0 4px rgba(225,84,57,0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(225,84,57,0.20); }
  50%      { box-shadow: 0 0 0 8px rgba(225,84,57,0.05); }
}

.hero-title {
  font-family: var(--sd-font-display);
  font-weight: var(--sd-fw-bold);
  font-size: var(--sd-text-display-fluid);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 20px;
  color: #fff;
}
.hero-title .accent {
  display: inline-block;
  color: var(--sd-primary-400); /* light tint — reads on the dark photo hero */
}
.hero-sub {
  font-size: var(--sd-text-hero-sub);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 30px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.hero-meta .check {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(225,84,57,0.9);
}

/* Floating hero card shell — page positions instances (.hc-*) itself */
.hero-card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 8px 16px rgba(0,0,0,0.18);
  background: #fff;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Generic section frame ──────────────────────── */
.section { position: relative; padding: 80px 24px; isolation: isolate; }
.section-cream { background: linear-gradient(180deg, #ffffff 0%, var(--sd-bg-cream) 100%); }
.section-cream2 { background: var(--sd-bg-cream); }
.section-mute { background: var(--sd-bg-mute); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  font-size: 13px; font-weight: 600;
  color: var(--sd-primary-text);   /* AA — small orange on light, not full 600 */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
/* Eyebrow contract: indigo on App/Health (legacy class parity with
   the .sd-eyebrow override in brands/app.css + health.css). */
.brand-app .section-head .eyebrow,
.brand-health .section-head .eyebrow { color: var(--sd-indigo-600); }
.section-head h2 {
  font-size: var(--sd-text-section);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sd-neutral-950);
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-head p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sd-fg-muted);
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  background: #fff;
  padding: 80px 24px 0;
  border-top: 1px solid var(--sd-border);
}
.footer-inner {
  max-width: var(--sd-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p {
  color: var(--sd-fg-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sd-neutral-950);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--sd-fg-muted);
  font-size: 15px;
  transition: color var(--sd-dur-fast) var(--sd-ease);
}
.footer-col a:hover { color: var(--sd-primary); }
.footer-bottom {
  border-top: 1px solid var(--sd-border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom .links a { color: var(--sd-fg-muted); }

/* Footer socials — inside .footer-brand below the description. */
.footer-brand .socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-brand .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--sd-border);
  display: grid; place-items: center;
  color: var(--sd-fg);
  transition: background var(--sd-dur-fast) var(--sd-ease),
              color var(--sd-dur-fast) var(--sd-ease),
              border-color var(--sd-dur-fast) var(--sd-ease);
}
.footer-brand .socials a:hover {
  background: var(--sd-primary);
  color: #fff;
  border-color: var(--sd-primary-700);
}

/* ── Reveal on scroll ──────────────────────────── */
/* alias of foundation's .sd-reveal — kept for shipped HTML */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--sd-ease-out),
              transform 700ms var(--sd-ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive (chrome only) ───────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 110px 20px 60px; }
  .section { padding: 80px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-cta .login-link { display: none; }
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
