/*
 Theme Name: CantReplaceMe
 Theme URI: https://cantreplaceme.com
 Description: Custom child theme for CantReplaceMe — AI skills for non-technical professionals
 Author: CantReplaceMe
 Author URI: https://cantreplaceme.com
 Template: generatepress
 Version: 1.0.0
 Text Domain: cantreplaceme
*/

/* ========================================
   CantReplaceMe Design System v1.0
   Brand Guidelines + Website Design Spec
   ======================================== */

/* --- CSS Custom Properties (12-Color Palette) --- */
:root {
  --crm-carbon: #111111;
  --crm-iron: #2B2B2B;
  --crm-pewter: #6E6E6E;
  --crm-ash: #D4D4D4;
  --crm-mist: #F5F5F5;
  --crm-white: #FFFFFF;
  --crm-electric: #FF4D00;
  --crm-ember: #D94400;
  --crm-glow: #FFF0EB;
  --crm-gold: #FFAA00;
  --crm-blue: #3D7BF7;
  --crm-forest: #1DB954;
  --crm-font-headline: 'Space Grotesk', sans-serif;
  --crm-font-body: 'DM Sans', sans-serif;
  --crm-font-mono: 'JetBrains Mono', monospace;
  --crm-max-width: 1200px;
  --crm-content-width: 680px;
  --crm-section-padding: 80px 40px;
  --crm-section-padding-mobile: 48px 20px;
}

/* --- Reset & Base --- */
body {
  font-family: var(--crm-font-body);
  color: var(--crm-carbon);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--crm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--crm-font-headline);
  color: var(--crm-carbon);
  line-height: 1.2;
  margin-top: 0;
}

.crm-display { font-size: 52px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; }
h1, .crm-h1 { font-size: 38px; font-weight: 700; }
h2, .crm-h2 { font-size: 28px; font-weight: 700; line-height: 1.3; }
h3, .crm-h3 { font-size: 22px; font-weight: 600; line-height: 1.4; }
h4, .crm-h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }
p { margin-bottom: 16px; }

a { color: var(--crm-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--crm-electric); }

.crm-label {
  font-family: var(--crm-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crm-electric);
  display: block;
  margin-bottom: 12px;
}

.crm-mono { font-family: var(--crm-font-mono); }
.crm-small { font-size: 14px; line-height: 1.5; color: var(--crm-pewter); }

/* --- Layout --- */
.crm-section {
  width: 100%;
  padding: var(--crm-section-padding);
}

.crm-inner {
  max-width: var(--crm-max-width);
  margin: 0 auto;
}

.crm-narrow {
  max-width: var(--crm-content-width);
  margin: 0 auto;
}

.crm-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.crm-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* --- Buttons --- */
.crm-btn {
  display: inline-block;
  font-family: var(--crm-font-headline);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.crm-btn-primary {
  background-color: var(--crm-electric);
  color: #fff !important;
}
.crm-btn-primary:hover {
  background-color: var(--crm-ember);
  transform: translateY(-1px);
  color: #fff !important;
}

.crm-btn-secondary {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.3);
}
.crm-btn-secondary:hover {
  border-color: var(--crm-electric);
  color: #fff !important;
}

.crm-btn-secondary-dark {
  background: transparent;
  color: var(--crm-carbon) !important;
  border: 2px solid var(--crm-ash);
}
.crm-btn-secondary-dark:hover {
  border-color: var(--crm-electric);
  color: var(--crm-carbon) !important;
}

/* --- Section Themes --- */
.crm-bg-carbon { background-color: var(--crm-carbon); color: #fff; }
.crm-bg-carbon h1, .crm-bg-carbon h2, .crm-bg-carbon h3, .crm-bg-carbon h4 { color: #fff; }
.crm-bg-carbon p { color: var(--crm-ash); }
.crm-bg-carbon .crm-small { color: rgba(255,255,255,0.4); }

.crm-bg-iron { background-color: var(--crm-iron); color: #fff; }
.crm-bg-iron h1, .crm-bg-iron h2, .crm-bg-iron h3, .crm-bg-iron h4 { color: #fff; }

.crm-bg-mist { background-color: var(--crm-mist); }
.crm-bg-white { background-color: var(--crm-white); }
.crm-bg-glow { background-color: var(--crm-glow); }

/* --- Cards --- */
.crm-card {
  background: var(--crm-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.crm-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.crm-card-dark {
  background: var(--crm-iron);
  color: #fff;
  border-radius: 16px;
  padding: 32px;
}
.crm-card-dark h3, .crm-card-dark h4 { color: #fff; }

/* --- Pain Point Cards --- */
.crm-pain-card {
  background: var(--crm-mist);
  border-left: 4px solid var(--crm-electric);
  padding: 20px 24px;
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}

/* --- Step Numbers --- */
.crm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--crm-electric);
  color: #fff;
  border-radius: 50%;
  font-family: var(--crm-font-headline);
  font-weight: 700;
  font-size: 20px;
}

/* --- Pricing Cards --- */
.crm-pricing-card {
  background: var(--crm-iron);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  position: relative;
}
.crm-pricing-card.featured {
  border-top: 4px solid var(--crm-electric);
}
.crm-pricing-card .price {
  font-family: var(--crm-font-mono);
  font-size: 48px;
  font-weight: 700;
}
.crm-pricing-card .price-period {
  font-size: 16px;
  color: var(--crm-ash);
}
.crm-pricing-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.crm-pricing-card .feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
}
.crm-pricing-card .feature-list li:last-child {
  border-bottom: none;
}
.crm-check { color: var(--crm-forest); margin-right: 8px; }
.crm-dash { color: var(--crm-pewter); margin-right: 8px; }

/* --- Badge --- */
.crm-badge {
  display: inline-block;
  font-family: var(--crm-font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
}
.crm-badge-gold { background: var(--crm-gold); color: var(--crm-carbon); }
.crm-badge-electric { background: var(--crm-electric); color: #fff; }

/* --- FAQ Accordion --- */
.crm-faq-item {
  border-bottom: 1px solid var(--crm-ash);
  padding: 20px 0;
}
.crm-faq-q {
  font-family: var(--crm-font-headline);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.crm-faq-icon {
  font-size: 24px;
  color: var(--crm-electric);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  line-height: 1;
}
.crm-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--crm-pewter);
  line-height: 1.6;
}
.crm-faq-item.active .crm-faq-icon {
  transform: rotate(45deg);
}
.crm-faq-item.active .crm-faq-a {
  max-height: 500px;
  padding-top: 12px;
}

/* --- Scroll Animations --- */
/* All sections visible by default. Animation is progressive enhancement. */
.crm-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Founding Counter --- */
.crm-counter {
  font-family: var(--crm-font-mono);
  font-size: 18px;
  color: var(--crm-electric);
}
.crm-counter .count {
  font-weight: 700;
  font-size: 22px;
}

/* --- Guarantee --- */
.crm-guarantee-icon {
  font-size: 48px;
  color: var(--crm-forest);
  margin-bottom: 16px;
}

/* --- Audio Player --- */
.crm-audio-label {
  font-family: var(--crm-font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--crm-pewter);
  margin-bottom: 8px;
}
.crm-audio audio {
  width: 100%;
}

/* --- Blog CTA Card --- */
.crm-blog-cta {
  background: var(--crm-glow);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

/* --- Video Coming Soon Card --- */
.crm-video-soon {
  background: var(--crm-mist);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 32px 0;
}
.crm-video-soon p { color: var(--crm-pewter); margin-bottom: 8px; }

/* --- Share Buttons --- */
.crm-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.crm-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--crm-font-headline);
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.2s;
  min-height: 44px;
  cursor: pointer;
  border: none;
}
.crm-share-btn:hover { opacity: 0.85; color: #fff !important; }
.crm-share-btn.linkedin { background: #0077B5; }
.crm-share-btn.twitter { background: #000; }
.crm-share-btn.facebook { background: #1877F2; }
.crm-share-btn.whatsapp { background: #25D366; }
.crm-share-btn.bluesky { background: #0085FF; }
.crm-share-btn.threads { background: #000; }
.crm-share-btn.email-share { background: var(--crm-iron); }
.crm-share-btn.copy-link { background: var(--crm-iron); }

/* --- Focus States (Accessibility) --- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--crm-blue);
  outline-offset: 2px;
}

/* --- Responsive Breakpoints --- */
@media (min-width: 768px) {
  .crm-grid-2 { grid-template-columns: 1fr 1fr; }
  .crm-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 767px) {
  :root {
    --crm-section-padding: 48px 20px;
  }
  .crm-display { font-size: 36px; letter-spacing: -0.5px; }
  h1, .crm-h1 { font-size: 28px; }
  h2, .crm-h2 { font-size: 24px; }
  h3, .crm-h3 { font-size: 20px; }
  .crm-btn { display: block; width: 100%; }
  .crm-section { padding: var(--crm-section-padding-mobile); }
}

@media (max-width: 479px) {
  .crm-display { font-size: 32px; }
  h1, .crm-h1 { font-size: 26px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .crm-display { font-size: 44px; }
}

/* --- Pricing Card Enhancements --- */
.crm-pricing-card.featured {
  transform: scale(1.02);
}
.crm-pricing-card .price {
  font-size: 56px;
}
.crm-pricing-card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}
.crm-pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

/* --- Badge Enhancement --- */
.crm-badge-gold {
  box-shadow: 0 2px 8px rgba(255,170,0,0.3);
}

/* --- Pain Card Hover --- */
.crm-pain-card {
  transition: border-color 0.2s ease;
}
.crm-pain-card:hover {
  border-left-color: var(--crm-ember);
}

/* --- Check Icons in Feature Lists --- */
.crm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: rgba(29,185,84,0.15);
  color: var(--crm-forest);
  border-radius: 50%;
  font-size: 12px;
  margin-right: 10px;
}

/* --- GeneratePress Overrides --- */
.site-header { display: none !important; }
.site-footer { display: none !important; }
.site-content { padding: 0 !important; }
.inside-article { padding: 0 !important; border: none !important; box-shadow: none !important; }
.entry-header { display: none !important; }
article { background: transparent !important; }
.content-area { width: 100% !important; float: none !important; }
.is-right-sidebar, .is-left-sidebar, .widget-area { display: none !important; }
#page { overflow-x: hidden; }
