/* ═══════════════════════════════════════════════════════════════════
   BestDogMom.net — Global Stylesheet
   Visual DNA Design Tokens → CSS Custom Properties
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  /* Colors — from Visual DNA doc */
  --color-brand:      #212121;   /* Core brand dark — buttons, headings */
  --color-accent:     #f44336;   /* Brand accent red */
  --color-body:       #616161;   /* Body text — softer than black */
  --color-meta:       #9e9e9e;   /* Subtext, captions */
  --color-bg:         #ffffff;   /* Primary background */
  --color-bg-alt:     #f5f5f5;   /* Secondary background — sections, inputs */
  --color-footer:     #2a2a2a;   /* Footer dark */
  --color-footer-alt: #272727;   /* Footer darker section */
  --color-white:      #ffffff;
  --color-border:     #e0e0e0;

  /* Typography — Nunito throughout */
  --font-family:      'Nunito', sans-serif;
  --font-body:        400;
  --font-semibold:    600;
  --font-bold:        700;
  --font-extrabold:   800;

  /* Sizing */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */

  /* Layout */
  --container-max:  1600px;  /* Wide layout from Visual DNA */
  --container-pad:  1.5rem;
  --radius:         20px;    /* Global border radius — cards, images */
  --radius-btn:     5px;     /* Button border radius */
  --radius-sm:      8px;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-brand);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-4xl); font-weight: var(--font-extrabold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch; /* Readable line length */
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #333333;
  color: var(--color-white);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  background: #d32f2f;
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}

.btn--outline:hover {
  background: var(--color-brand);
  color: var(--color-white);
}

/* ─── Header / Nav ───────────────────────────────────────────────── */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-header__logo {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--color-brand);
}

.site-header__logo:hover {
  color: var(--color-brand);
}

.site-nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.site-nav a {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-body);
  padding: var(--space-xs) 0;
}

.site-nav a:hover {
  color: var(--color-brand);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-brand);
  margin: 5px 0;
  transition: 0.3s;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer);
  color: var(--color-meta);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.site-footer a {
  color: var(--color-meta);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid #3a3a3a;
  font-size: var(--text-xs);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ─── Product Cards ──────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: var(--space-md);
}

.product-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-brand);
  margin-bottom: var(--space-xs);
}

.product-card__price {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-brand);
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, 3.5rem);
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.hero p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  color: var(--color-body);
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Trust Bar ──────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-meta);
  font-weight: var(--font-semibold);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --container-pad: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }
}
