/* NerdHouse child theme — block style overrides
 * Classes used here are referenced via the `className` attribute on core blocks
 * so block markup stays clean and avoids inline-style validation drift.
 */

/* Hero CTAs */
.wp-block-button.nh-btn-primary > a {
  background-color: #0ea5e9;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-decoration: none;
}
.wp-block-button.nh-btn-primary > a:hover {
  background-color: #0284c7;
}
.wp-block-button.nh-btn-secondary > a {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-decoration: none;
}
.wp-block-button.nh-btn-secondary > a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #64748b;
}

/* Service cards (column variant) */
.wp-block-column.nh-service-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1.75rem;
}
.wp-block-column.nh-service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.wp-block-column.nh-service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Contact info pills */
.wp-block-column.nh-contact-pill {
  background-color: #0f1f3a;
  border-radius: 10px;
  padding: 1.5rem;
}
.wp-block-column.nh-contact-pill p {
  margin: 0;
}
.wp-block-column.nh-contact-pill p:first-child {
  color: #7dd3fc;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}
.wp-block-column.nh-contact-pill p:last-child {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}
.wp-block-column.nh-contact-pill p:last-child a {
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Tools & Gear We Recommend (affiliate page)
   ============================================================ */

/* Affiliate disclosure — Amazon Associates compliance.
 * Must be visually prominent and appear above any affiliate links. */
.wp-block-group.nh-disclosure {
  background-color: #fef3c7;
  border-left: 4px solid #d97706;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin: 2rem auto 2.5rem;
  max-width: 720px;
}
.wp-block-group.nh-disclosure .nh-disclosure-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  margin: 0 0 0.4rem 0;
}
.wp-block-group.nh-disclosure p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #78350f;
  margin: 0;
}

/* Product card */
.wp-block-column.nh-product-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.wp-block-column.nh-product-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.wp-block-column.nh-product-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}
.wp-block-column.nh-product-card .wp-block-buttons {
  margin-top: auto;
}

/* "View on Amazon" button — distinct from primary site CTA */
.wp-block-button.nh-amazon-btn > a {
  background-color: #0a1628;
  color: #ffffff;
  border: 1px solid #0a1628;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.18s ease;
}
.wp-block-button.nh-amazon-btn > a:hover {
  background-color: #1e3a5f;
  border-color: #1e3a5f;
  color: #ffffff;
}

/* Section heading inside the affiliate page */
.nh-tools-section h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.nh-tools-section .nh-section-lead {
  font-size: 1rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 2rem 0;
  max-width: 50ch;
}

/* CookieYes banner — color overrides
 * The plugin's preset system overrides user-set colors at render time
 * (array_replace_recursive in class-template.php prepare_html()), so
 * we override via higher-specificity CSS with !important.
 */
.cky-btn-accept,
button.cky-btn.cky-btn-accept,
button.cky-btn.cky-btn-preferences {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #ffffff !important;
}
.cky-btn-accept:hover,
button.cky-btn.cky-btn-accept:hover,
button.cky-btn.cky-btn-preferences:hover {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}
.cky-btn-reject,
button.cky-btn.cky-btn-reject,
.cky-btn-customize,
button.cky-btn.cky-btn-customize {
  color: #0a1628 !important;
  border-color: #0a1628 !important;
  background-color: transparent !important;
}
.cky-btn-reject:hover,
button.cky-btn.cky-btn-reject:hover,
.cky-btn-customize:hover,
button.cky-btn.cky-btn-customize:hover {
  background-color: #0a1628 !important;
  color: #ffffff !important;
}
/* Revisit button (floating bottom-left tooltip) */
.cky-btn-revisit-wrapper,
.cky-btn-revisit-wrapper[style] {
  background-color: #0a1628 !important;
}
/* Toggle states in preferences */
.cky-preference-content-wrapper .cky-switch input[type="checkbox"]:checked + .cky-toggle,
.cky-consent-container .cky-switch input[type="checkbox"]:checked + label::before {
  background-color: #0ea5e9 !important;
}
/* Heading + description titles use site palette */
.cky-consent-container .cky-title,
.cky-modal .cky-preference-title,
.cky-modal .cky-preference-content-wrapper h4 {
  color: #0a1628 !important;
}
/* Link colors inside banner copy */
.cky-notice-des a,
.cky-preference-content-wrapper a {
  color: #0ea5e9 !important;
  text-decoration: underline !important;
}
