/*
 Theme Name:   TheGem Child
 Theme URI:    https://scorpionrepair.com
 Description:  TheGem Child Theme for ScorpionRepair
 Author:       Your Name
 Template:     thegem
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  thegem-child
*/

/* Import parent theme style */
@import url("../thegem/style.css");
/* Optimized styles for Scorpion Repair site */

/* General optimizations */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* Fear Reduction Section */
.fear-reduction {
  background-color: #f5f7f9;
  padding: 80px 0;
  text-align: center;
}

.fear-reduction h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c2e3d;
}

.fear-reduction p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-buttons {
  margin: 30px 0;
}

.gem-button.primary {
  background-color: #00bcd4;
  color: white;
  margin-right: 15px;
}

.gem-button.secondary {
  background-color: transparent;
  color: #00bcd4;
  border: 2px solid #00bcd4;
}

/* Features Section - Beginner to Pro */
.beginner-to-pro {
  padding: 80px 0;
  background-color: white;
}

.beginner-to-pro h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #2c2e3d;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.feature-item img {
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c2e3d;
}

/* Money-Making Section */
.income-potential {
  background-color: #2c2e3d;
  color: white;
  padding: 80px 0;
}

.income-potential h2 {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

.earnings-calculator {
  background-color: rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 30px;
  margin-bottom: 40px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 10px;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background-color: #f5f7f9;
}

.pricing-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-item {
  background-color: white;
  border-radius: 5px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pricing-item.featured {
  border: 2px solid #00bcd4;
  transform: scale(1.05);
}

.pricing-item.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.sale-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #f44236;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.pricing-item .price {
  font-size: 36px;
  font-weight: bold;
  margin: 20px 0;
  color: #2c2e3d;
}

.pricing-item .price span {
  font-size: 16px;
  color: #777;
}

.pricing-item .savings {
  color: #00bcd4;
  font-weight: bold;
}

.pricing-item .limited-time {
  color: #f44236;
  font-weight: bold;
  margin-bottom: 15px;
}

.pricing-item ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  text-align: left;
}

.pricing-item ul li {
  padding: 5px 0;
  position: relative;
  padding-left: 25px;
}

.pricing-item ul li:before {
  content: "✓";
  color: #00bcd4;
  position: absolute;
  left: 0;
}

/* Loading optimizations */
.lazy-loading img {
  transition: opacity 0.3s;
  opacity: 0;
}

.lazy-loading img.loaded {
  opacity: 1;
}

/* Fix for white text in header */
.site-header .primary-navigation .menu-item a,
.header-main .site-title a,
.site-header .header-colors-light .menu-item a {
  color: #2c2e3d !important; /* Dark text color that will be visible on white */
}

/* Ensure text is white when header becomes sticky/scrolled */
.site-header.fixed .primary-navigation .menu-item a,
.site-header.scrolled .primary-navigation .menu-item a {
  color: #ffffff !important; /* White text when header has background color */
}

/* Fix header background to ensure it's not transparent on homepage */
.site-header-wrapper-transparent .header-background {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure proper contrast for the sticky state */
.site-header.fixed .header-background,
.site-header.scrolled .header-background {
  background-color: #2c2e3d !important;
}
/* More specific selectors for header text color */
#site-header .primary-navigation .menu-item a,
#site-header .site-title a,
#primary-navigation .menu-item a,
.header-style-3 #primary-menu.no-responsive > li > a,
.header-style-4 #primary-menu.no-responsive > li > a,
#primary-menu.no-responsive > li > a {
    color: #2c2e3d !important;
}

/* Fix navigation text color with !important to override parent theme */
nav#primary-navigation li a,
#primary-menu li a,
header#site-header .primary-navigation a {
    color: #2c2e3d !important;
}