/* Tools row */
.tools-row { padding: 1.5rem 0 0.5rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  font-family: inherit;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #c5e0d0;
}
.tool-icon { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--primary-deep); }
.tool-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Tools section */
.tools-section { padding: 2rem 0 4rem; }
.tools-intro { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 560px; }
.quiz-form, .calc-form { max-width: 480px; }
.quiz-q { margin-bottom: 1.1rem; }
.quiz-q label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.quiz-q select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: white;
}
.quiz-result, .calc-result { margin-top: 2rem; }
.quiz-suggestions { display: grid; gap: 0.75rem; margin: 1rem 0; }
.quiz-suggestion-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.quiz-suggestion-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.quiz-suggestion-card span { font-size: 1.8rem; }
.quiz-disclaimer { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }

.calc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.calc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
}
.calc-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.calc-value { font-size: 1.4rem; font-weight: 700; color: var(--primary-deep); }
.calc-note { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0; }

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.checklist-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.checklist-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--primary-deep); }
.checklist-card ul { padding-left: 1.1rem; margin-bottom: 1rem; font-size: 0.92rem; color: var(--text-muted); }
.checklist-card li { margin-bottom: 0.3rem; }
.btn-secondary {
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}
.btn-secondary:hover { background: #eef8f1; }

/* Mistakes & Breeds on detail */
.mistakes-box {
  background: #fff8f0;
  border: 1px solid #f5d9b8;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
}
.mistakes-box h3 { font-size: 1.05rem; color: #9a3412; margin-bottom: 0.6rem; }
.mistakes-box ul { padding-left: 1.15rem; color: #7c2d12; font-size: 0.93rem; }
.mistakes-box li { margin-bottom: 0.35rem; }

.breeds-section { margin: 1.75rem 0; }
.breeds-heading { font-size: 1.2rem; color: var(--primary-deep); margin-bottom: 0.35rem; }
.breeds-intro { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.breeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.breed-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
.breed-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--primary-deep); }
.breed-card p { color: var(--text-muted); margin: 0; line-height: 1.45; font-size: 0.86rem; }

/* Articles */
.articles-section, .resources-section { padding: 2rem 0 4rem; }
.articles-list { display: grid; gap: 1rem; }
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.article-card h3 {
  font-size: 1.1rem;
  color: var(--primary-deep);
  margin-bottom: 0.4rem;
  font-weight: 650;
}
.article-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.read-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.article-full {
  max-width: 680px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.article-full h2 {
  font-size: 1.5rem;
  color: var(--primary-deep);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-full p, .article-full li {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.article-full ol, .article-full ul { padding-left: 1.3rem; margin-bottom: 1rem; }

/* UK Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin-top: 0.5rem;
}
.resource-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.resource-card h3 {
  font-size: 1.05rem;
  color: var(--primary-deep);
  margin-bottom: 0.7rem;
  font-weight: 650;
}
.resource-card ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.resource-card li { margin-bottom: 0.45rem; }
.resource-card a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: none;
}
.resource-card a:hover { text-decoration: underline; }
.resources-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-more-btn {
  cursor: pointer;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.4rem 0;
  z-index: 150;
}
.nav-dropdown-menu.open {
  display: block;
}
.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-dropdown-item:hover {
  background: #eef8f1;
  color: var(--primary-dark);
}

/* Keep main nav tidy on small screens */
@media (max-width: 640px) {
  .main-nav {
    gap: 0.1rem;
  }
  .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
  }
  .logo {
    font-size: 1.05rem;
  }
}

/* Detail page accordions (Before buying / Where they live) */
.detail-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.detail-accordion {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-accordion summary {
  padding: 0.95rem 1.15rem;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--primary-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}
.detail-accordion summary::-webkit-details-marker { display: none; }
.detail-accordion summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 500;
}
.detail-accordion[open] summary::after { content: "−"; }
.detail-accordion summary:hover { background: #f8faf9; }
.detail-accordion ul {
  padding: 0 1.15rem 1.1rem 2.2rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.detail-accordion li {
  margin-bottom: 0.45rem;
}

/* Product cards as clickable previews */
a.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #f8faf9;
  border-radius: 12px;
  padding: 1.15rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.product-card-link:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,166,81,0.12);
  transform: translateY(-2px);
}
.product-icon {
  font-size: 2rem;
  margin-bottom: 0.45rem;
  line-height: 1;
}
a.product-card-link h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--primary-deep);
  font-weight: 650;
}
a.product-card-link p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}
.product-cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
}
a.product-card-link:hover .product-cta {
  background: var(--primary-dark);
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.legal-page h2 {
  font-size: 1.5rem;
  color: var(--primary-deep);
  margin-bottom: 0.5rem;
}
.legal-page h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 1.35rem 0 0.5rem;
}
.legal-page p, .legal-page li {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}
.legal-page ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal-updated { font-size: 0.85rem; color: #9ca3af; margin-bottom: 1.25rem; }

.product-thumb {
  width: 100%;
  max-width: 140px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
  border-radius: 8px;
  background: #fff;
}

/* Top picks on detail pages */
.top-picks-section {
  margin: 1.75rem 0 1.25rem;
}
.top-picks-heading {
  font-size: 1.2rem;
  color: var(--primary-deep);
  margin-bottom: 0.25rem;
}
.top-picks-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}
.top-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}
.top-pick-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.top-pick-card img {
  width: 100%;
  max-width: 110px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.top-pick-card strong {
  font-size: 0.88rem;
  color: var(--primary-deep);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.top-pick-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* What to buy first */
.buy-first-section {
  background: #f0f9f4;
  border: 1px solid #c5e0d0;
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.5rem;
}
.buy-first-section h3 {
  font-size: 1.05rem;
  color: var(--primary-deep);
  margin-bottom: 0.6rem;
}
.buy-first-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.buy-first-list li { margin-bottom: 0.35rem; }

/* Email signup */
.email-section {
  padding: 0.5rem 0 1.5rem;
}
.email-box {
  background: linear-gradient(135deg, #e8f6ee 0%, #f0f9f4 100%);
  border: 1px solid #c5e0d0;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.email-box h2 {
  font-size: 1.25rem;
  color: var(--primary-deep);
  margin-bottom: 0.35rem;
}
.email-box > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.email-form input[type="email"],
.email-form select {
  flex: 1 1 160px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
}
.email-form button {
  flex: 0 0 auto;
}
.email-privacy {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.email-privacy a {
  color: var(--primary-dark);
}
