/*
Theme Name: Eric Lander Offerings
Theme URI: https://www.ericlander.com/
Author: Eric Lander + ChatGPT
Author URI: https://www.ericlander.com/
Description: Lightweight, scalable child theme for GeneratePress powering Eric's SEO offerings store. Custom CPT, ACF-driven structure.
Version: 1.0
Template: generatepress
Text Domain: ericlander-offerings
*/

/* Base styling for Offerings CPT */
body.single-offering .site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.25rem;
  padding: 0; /* removed internal vertical padding */
}

.offering-card {
  border: 1px solid #e0e0e0;
  padding: 1rem; /* tighter */
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.offering-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.offering-summary {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.75rem;
}

.offering-price {
  font-weight: 600;
  font-size: 1rem;
  color: #157AAB;
  margin-top: auto;
}

.offering-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #157AAB;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

/* HR Divider */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--contrast-3, #ccc);
  margin: 1.25rem 0;
  max-width: 80%;
  opacity: 0.3;
}

/* General Code Styling */
code,
pre {
  font-family: SFMono-Regular, Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  border-radius: 6px;
  overflow-x: auto;
}

pre {
  display: block;
  background: #1e1e1e;
  color: #f5f5f5;
  padding: 1.2em;
  margin: 2em 0;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent);
}

code {
  background-color: #f4f4f4;
  color: #333;
  padding: 0.2em 0.5em;
  margin: 0 0.2em;
}

/* Blockquote Styles */
blockquote {
  border-left: 4px solid var(--accent);
  background-color: rgba(21, 122, 171, 0.07);
  padding: 1em 1.25em;
  margin: 1.5rem 0;
  font-style: italic;
  color: #2a2a2a;
}

blockquote.tip {
  border-left: 4px solid #3baf75;
  background-color: rgba(59, 175, 117, 0.08);
  color: #1a3c2f;
  font-style: normal;
}

blockquote.warning {
  border-left: 4px solid #e07c3c;
  background-color: rgba(224, 124, 60, 0.08);
  color: #4a2f1b;
  font-style: normal;
}

blockquote.note {
  border-left: 4px solid #a58f7a;
  background-color: rgba(165, 143, 122, 0.08);
  color: #3c322c;
  font-style: normal;
}

blockquote.cta {
  border-left: 5px solid var(--accent, #157AAB);
  background-color: rgba(21, 122, 171, 0.1);
  padding: 1em 1.25em;
  margin: 1.75rem 0;
  font-style: normal;
  font-size: 1.05em;
  color: #1f1f1f;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

blockquote.cta a {
  color: var(--accent, #157AAB);
  font-weight: 600;
  text-decoration: underline;
}

blockquote.cta strong {
  display: block;
  font-size: 1.15em;
  margin-bottom: 0.3em;
}

/* Homepage Spacing Tightened */
body.home .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

body.home .site-main > * {
  flex: 1 1 100%;
}

body.home .featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
