/* ══════════════════════════════════════════════════════
   CANINE ORIGINS — SHARED STYLESHEET
   Version 2.0 — Unified design system
══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Brand greens */
  --midnight:     #1c2b1e;
  --forest:       #2d5016;
  --fern:         #4a7c2f;
  --moss:         #6b9e4a;
  --mist:         #eef4e8;
  --chalk:        #f5f0e8;

  /* Accent */
  --ember:        #8b4a00;
  --ember-mid:    #c4690f;
  --ember-pale:   #fff4e6;
  --ember-border: #e8a84a;

  /* Ink scale */
  --ink:          #1c2b1e;
  --ink-mid:      #3a4e3c;
  --ink-soft:     #506652;
  --rule:         #c8d8c0;

  /* Feedback */
  --red:          #b53a2e;
  --red-pale:     #faeae8;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --max-w:        1040px;
  --max-w-narrow: 760px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(28,43,30,0.08);
  --shadow-lg:    0 8px 40px rgba(28,43,30,0.12);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--fern); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--forest); }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ────────────────────────────────────────────── */
.site-nav {
  background: var(--midnight);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  /* Invert to white on dark nav */
  filter: brightness(0) invert(1);
}
.nav-logo:hover img { filter: brightness(0) saturate(100%) invert(62%) sepia(28%) saturate(452%) hue-rotate(63deg) brightness(97%) contrast(86%); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--midnight);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ── SOCIAL BUTTONS ─────────────────────────────────── */
.social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.15s;
  font-size: 0.85rem;
}
.social-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--fern);
  color: #fff;
  border-color: var(--fern);
}
.btn-primary:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-primary:disabled { background: var(--rule); cursor: not-allowed; opacity: 0.7; }

.btn-outline {
  background: transparent;
  color: var(--fern);
  border-color: var(--fern);
}
.btn-outline:hover { background: var(--mist); color: var(--forest); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--mist); color: var(--ink); }

.btn-amber {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
}
.btn-amber:hover { background: #7a4300; border-color: #7a4300; color: #fff; }

.btn-print {
  background: var(--midnight);
  color: #fff;
  border-color: var(--midnight);
  gap: 0.5rem;
}
.btn-print:hover { background: #0f1a10; color: #fff; }

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}
.btn-full { width: 100%; }

/* ── ACTION CLUSTER (print + social share) ──────────── */
.action-cluster {
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.action-cluster-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .action-row { grid-template-columns: 1fr; } }

.action-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.action-item .btn {
  width: 100%;
}
.action-caption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: center;
}

/* Share row — Substack, Bluesky, Facebook */
.share-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}
.share-btn-substack {
  background: #fff4e6;
  color: #c4470a;
  border-color: #f0a070;
}
.share-btn-substack:hover { background: #ffe8cc; color: #a33a06; }
.share-btn-bluesky {
  background: #e8f4ff;
  color: #0085ff;
  border-color: #90c8f8;
}
.share-btn-bluesky:hover { background: #d0e8ff; color: #0070dd; }
.share-btn-facebook {
  background: #e8eeff;
  color: #1877f2;
  border-color: #90a8f8;
}
.share-btn-facebook:hover { background: #d0daff; color: #1460d0; }
.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── MAILERLITE OVERRIDES ───────────────────────────── */
.newsletter-section {
  background: var(--midnight);
  padding: 3.5rem 1.5rem;
  margin-top: 3rem;
}
.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  display: block;
  margin-bottom: 0.75rem;
}
.newsletter-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.newsletter-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Override MailerLite form background to match dark section */
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody {
  padding: 0 !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent {
  display: none !important; /* we use our own heading above */
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedHeader {
  display: none !important; /* hide MailerLite logo image */
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input::placeholder {
  color: rgba(255,255,255,0.45) !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
  background-color: var(--fern) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
  background-color: var(--forest) !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-checkboxRow .label-description,
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent p {
  color: rgba(255,255,255,0.6) !important;
}
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4,
#mlb2-41995423.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
  color: #fff !important;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────── */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fern);
  display: block;
  margin-bottom: 0.75rem;
}
.display {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.display em { font-style: italic; color: var(--fern); }
.lead {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.78;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── CARD ───────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}

/* ── PRINT STYLES ───────────────────────────────────── */
@media print {
  .site-nav,
  .site-footer,
  .action-cluster,
  .newsletter-section,
  .no-print { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3 { page-break-after: avoid; }
  .print-break { page-break-before: always; }
}

/* ── COOKIE BANNER ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--midnight);
  color: rgba(255,255,255,0.85);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 999;
  font-size: 0.85rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner a { color: var(--moss); }
#cookie-accept {
  background: var(--fern);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
#cookie-accept:hover { background: var(--forest); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links { display: none; }
}
