/* ============================================================
   dogtohumanyears.com — Shared Stylesheet
   Design: Neo-minimalist | Black text | Pink CTA | Rounded UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --border:       #E2E1DC;
  --border-dark:  #111111;
  --text:         #111111;
  --text-2:       #4A4A4A;
  --text-3:       #9A9A92;
  --pink:         #F472B6;
  --pink-hover:   #EC4899;
  --pink-light:   #FDF2F8;
  --result-bg:    #111111;
  --result-text:  #FAFAF8;
  --divider:      #EBEBЕ7;
  --tag-bg:       #111111;
  --tag-text:     #FAFAF8;
  --nav-bg:       #FFFFFF;
  --r:            10px;
  --r-sm:         6px;
}

[data-theme="dark"] {
  --bg:           #111111;
  --surface:      #1A1A1A;
  --border:       #2E2E2E;
  --border-dark:  #F0EFE9;
  --text:         #F0EFE9;
  --text-2:       #B0AFA8;
  --text-3:       #666660;
  --pink-light:   #2A1520;
  --result-bg:    #F0EFE9;
  --result-text:  #111111;
  --divider:      #222220;
  --tag-bg:       #F0EFE9;
  --tag-text:     #111111;
  --nav-bg:       #1A1A1A;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.site-nav {
  background: var(--nav-bg);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background .25s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}
.nav-logo span { color: var(--pink); }
.nav-paw {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--pink-light);
  color: var(--pink-hover);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}
.toggle input { display: none; }
.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background .2s;
}
.toggle input:checked + .toggle-track { background: var(--pink); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-track .toggle-knob { transform: translateX(18px); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}
.btn-pink {
  background: var(--pink);
  color: #fff;
}
.btn-pink:hover {
  background: var(--pink-hover);
  box-shadow: 0 4px 14px rgba(244,114,182,.35);
  text-decoration: none;
  color: #fff;
}
.btn-pink:active { transform: scale(.98); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-outline:hover { background: var(--pink-light); border-color: var(--pink); color: var(--pink-hover); text-decoration: none; }
.btn-full { width: 100%; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }

/* ── FORM ELEMENTS ── */
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.45rem;
}
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(244,114,182,.15);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: '↓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-3);
  pointer-events: none;
  font-family: 'DM Mono', monospace;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-2); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-hover);
  margin-bottom: 0.6rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
}
.divider { height: 1.5px; background: var(--border); margin: 2rem 0; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { border-color: var(--pink); box-shadow: 0 4px 18px rgba(244,114,182,.12); }

/* ── BLOG CARD ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--pink);
  box-shadow: 0 6px 22px rgba(244,114,182,.13);
  transform: translateY(-2px);
  text-decoration: none;
}
.blog-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-hover);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card p { font-size: 0.83rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.blog-card-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-meta { font-size: 0.72rem; color: var(--text-3); }
.read-more { font-size: 0.75rem; font-weight: 600; color: var(--pink-hover); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--pink-hover); }
.breadcrumb span { color: var(--text-3); }

/* ── ARTICLE BODY ── */
.article-body h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--text); }
.article-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.article-body p { color: var(--text-2); margin-bottom: 1rem; line-height: 1.75; }
.article-body ul, .article-body ol { color: var(--text-2); padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; line-height: 1.65; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-body th {
  background: var(--pink-light);
  color: var(--text);
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}
.article-body td { padding: 0.6rem 1rem; border: 1px solid var(--border); color: var(--text-2); }
.article-body tr:nth-child(even) td { background: var(--bg); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--pink-hover); }
.article-cta {
  background: var(--pink-light);
  border: 1.5px solid var(--pink);
  border-radius: var(--r);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.article-cta p { color: var(--text); font-weight: 500; margin-bottom: 0.75rem; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 500px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  z-index: 9999;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: opacity .3s, transform .3s;
}
.cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.cookie-text { flex: 1; font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.cookie-text a { color: var(--pink-hover); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: flex-start; flex-direction: column; }
.btn-cookie {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-cookie-accept { background: var(--pink); color: #fff; }
.btn-cookie-decline { background: transparent; color: var(--text-3); }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.83rem; color: var(--text-3); line-height: 1.6; margin-top: 0.5rem; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.83rem; color: var(--text-2); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: var(--pink-hover); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-3); margin: 0; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--pink-hover); }

/* ── HERO ── */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1.5px solid var(--border);
}

/* ── UTILITY ── */
.text-pink { color: var(--pink-hover); }
.text-sm { font-size: 0.82rem; }
.text-muted { color: var(--text-3); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.inline-flex { display: inline-flex; align-items: center; gap: .4rem; }
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--pink-light);
  color: var(--pink-hover);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

/* ── AD PLACEHOLDER ── */
.ad-slot {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.5rem 0;
}
.ad-slot-banner { height: 90px; }
.ad-slot-rect { height: 250px; }
.ad-slot-inline { height: 100px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  .nav-logo { font-size: 1.6rem; }
  .nav-paw { width: 28px; height: 28px; }
  .nav-inner { height: 66px; padding: 0 1rem; }

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

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-bottom: 1.5px solid var(--border);
    gap: 0.15rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 199;
  }
  .nav-links.open a { padding: 0.6rem 0.75rem; font-size: 0.9rem; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .2s;
  }

  .cookie-banner { left: 0.75rem; right: 0.75rem; flex-direction: column; }
  .cookie-actions { flex-direction: row; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .theme-label { display: none; }
}
@media (min-width: 769px) {
  .hamburger { display: none; }
}
