/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

body {
  background-color: #ffffff;
}

/* Page Layout Styles */
.site-content-page {
  min-height: 100vh;
}

.page-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.12),
    10px 0 10px -10px rgba(0, 0, 0, 0.12);
}

.page-site-main {
  margin-top: 0 !important;
}

.entry-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.entry-title {
  font-size: 2.5em;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.footer-copyright {
  margin-bottom: 0;
}

/* Footer Copyright & Menu Layout */
.footer-copyright-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.footer-copyright {
  margin: 0;
  padding: 0;
  text-align: left;
}

.footer-menu-wrapper {
  flex-shrink: 0;
}

.footer-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin: 0;
  padding: 0;
}

.footer-menu a {
  text-decoration: underline;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: #444;
}

.footer-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #222;
}

/* White links when footer has brand-colored background (subdomain pages) */
.footer-copyright-wrapper .footer-menu a {
  color: inherit;
}

.copyright-bar {
  width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .footer-copyright-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .footer-copyright-content {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-menu-wrapper {
    order: 2;
    width: 100%;
  }

  .footer-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-menu li {
    margin: 0 5px;
  }

  .footer-menu a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.site {
  max-width: 100% !important;
}

.inside-article {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.site-main {
  margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
  .front-page-main-content {
    padding: 20px !important;
  }
}

.homepage-container {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.front-page-main-content {
  max-width: 1380px;
  padding: 0 20px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Enhanced Typography for Front Page Content */
.front-page-main-content h1,
.front-page-main-content h2,
.front-page-main-content h3,
.front-page-main-content h4,
.front-page-main-content h5,
.front-page-main-content h6 {
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.front-page-main-content h1 {
  font-size: 2.5rem;
  color: #1a252f;
}

.front-page-main-content h2 {
  font-size: 2rem;
  color: #34495e;
}

.front-page-main-content h3 {
  font-size: 1.5rem;
}

.front-page-main-content p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

/* Enhanced List Styles */
.front-page-main-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.front-page-main-content ul li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.5rem;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.front-page-main-content ul li:last-child {
  border-bottom: none;
}

.front-page-main-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1.8rem;
  height: 1.8rem;
  background: linear-gradient(
    135deg,
    var(--brand-color-primary, #27ae60),
    var(--brand-color-light, #2ecc71)
  );
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 1.8rem;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.front-page-main-content ul li:hover {
  background-color: #f9f9f9;
  padding-left: 3rem;
}

/* Ordered List Styles */
.front-page-main-content ol {
  margin: 1.5rem 0;
  padding-left: 0;
  counter-reset: custom-counter;
  list-style: none; /* Remove browser default numbers */
}

.front-page-main-content ol li {
  position: relative;
  padding: 0.8rem 0 0.8rem 3rem;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
  counter-increment: custom-counter;
}

.front-page-main-content ol li:last-child {
  border-bottom: none;
}

.front-page-main-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(
    135deg,
    var(--brand-color-primary, #3498db),
    var(--brand-color-light, #5dade2)
  );
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 2rem;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sub-points styling (nested lists should not count) */
.front-page-main-content ol ol,
.front-page-main-content ol ul,
.front-page-main-content ul ol,
.front-page-main-content ul ul {
  margin: 0.5rem 0 0.5rem 1rem;
  counter-reset: none;
}

.front-page-main-content ol ol li,
.front-page-main-content ol ul li,
.front-page-main-content ul ol li,
.front-page-main-content ul ul li {
  counter-increment: none;
  padding: 0.5rem 0 0.5rem 2rem;
  border-bottom: none;
  font-size: 1rem;
}

.front-page-main-content ol ol li::before,
.front-page-main-content ol ul li::before,
.front-page-main-content ul ol li::before,
.front-page-main-content ul ul li::before {
  content: "→";
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--brand-color-lighter, #95a5a6),
    var(--brand-color-light, #7f8c8d)
  );
  font-size: 0.8rem;
  line-height: 1.5rem;
  top: 0.5rem;
}

/* Text Enhancement Classes */
.front-page-main-content .highlight-text {
  background: linear-gradient(
    120deg,
    var(--brand-color-lightest, #ffeaa7),
    var(--brand-color-lighter, #fab1a0)
  );
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.front-page-main-content .emphasis-text {
  color: var(--brand-color-dark, #e74c3c);
  font-weight: 600;
  font-size: 1.05em;
}

.front-page-main-content .success-text {
  color: var(--brand-color-primary, #27ae60);
  font-weight: 600;
}

.front-page-main-content .info-text {
  color: var(--brand-color-primary, #3498db);
  font-weight: 500;
}

/* Blockquote Styling */
.front-page-main-content blockquote {
  background: #f8f9fa;
  border-left: 5px solid var(--brand-color-primary, #3498db);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Call-to-Action Text */
.front-page-main-content .cta-text {
  background: linear-gradient(
    135deg,
    var(--brand-color-primary, #667eea),
    var(--brand-color-dark, #764ba2)
  );
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Benefits List (Special styling for product benefits) */
.front-page-main-content .benefits-list {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.front-page-main-content .benefits-list ul li::before {
  content: "★";
  background: linear-gradient(
    135deg,
    var(--brand-color-primary, #f39c12),
    var(--brand-color-light, #e67e22)
  );
}

/* Feature List (Alternative bullet style) */
.front-page-main-content .feature-list ul li::before {
  content: "●";
  background: linear-gradient(
    135deg,
    var(--brand-color-primary, #9b59b6),
    var(--brand-color-dark, #8e44ad)
  );
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* Strong and Bold Text Enhancement */
.front-page-main-content strong,
.front-page-main-content b {
  font-weight: 700;
}

/* Link Styling */
.front-page-main-content a {
  color: var(--brand-color-primary, #3498db);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.front-page-main-content a:hover {
  color: var(--brand-color-dark, #2980b9);
  border-bottom-color: var(--brand-color-primary, #3498db);
}

/* Page Container Styles */
.page-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content-custom {
  width: 100%;
}

.page-entry-title {
  text-align: center;
  font-size: 2.6rem;
}

.page-entry-title,
.page-content-custom h1,
.page-content-custom h2,
.page-content-custom h3,
.page-content-custom h4,
.page-content-custom h5,
.page-content-custom h6,
.front-page-main-content h2 {
  padding: 10px 15px 12px !important;
  margin-bottom: 1.2rem !important;
  margin-top: 1.5rem !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  background-color: var(--brand-color-primary) !important;
  border-bottom: 3px solid var(--brand-color-light) !important;
  border-radius: 5px 5px 0 0 !important;
  position: relative !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

/* Desktop font sizes */
.page-content-custom h1,
.page-entry-title {
  font-size: 1.8rem !important;
  text-align: center;
}
.page-content-custom h2 {
  font-size: 1.5rem !important;
  text-align: center;
}
.page-content-custom h3 {
  font-size: 1.2rem !important;
  text-align: center;
}
.page-content-custom h4 {
  font-size: 1rem !important;
}
.page-content-custom h5 {
  font-size: 0.8rem !important;
}
.page-content-custom h6 {
  font-size: 0.7rem !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .page-content-custom h1,
  .page-entry-title {
    font-size: 1.4rem !important;
  }
  .page-content-custom h2 {
    font-size: 1.2rem !important;
  }
  .page-content-custom h3 {
    font-size: 1rem !important;
  }
  .page-content-custom h4 {
    font-size: 0.9rem !important;
  }
  .page-content-custom h5 {
    font-size: 0.8rem !important;
  }
  .page-content-custom h6 {
    font-size: 0.7rem !important;
  }
}

/* Mobile Responsive Page Styles */
@media screen and (max-width: 768px) {
  .page-container {
    padding: 20px 15px;
  }

  .page-entry-title {
    text-align: center;
    font-size: 2rem;
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .front-page-main-content h1 {
    font-size: 2rem;
  }

  .front-page-main-content h2 {
    font-size: 1.7rem;
  }

  .front-page-main-content h3 {
    font-size: 1.4rem;
  }

  .front-page-main-content ul li,
  .front-page-main-content ol li {
    padding-left: 2rem;
    font-size: 1rem;
  }

  .front-page-main-content ul li::before,
  .front-page-main-content ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: 0.8rem;
  }
}

.site-content {
  margin: 0 auto !important;
  width: 100% !important;
}

.site-content-page {
  margin: 0 auto;
  padding-bottom: 20px;
}

/* =====================================================
   Homepage Product Catalog Styles
   ===================================================== */

.catalog-wrapper {
  background-color: #FBFAF3;
  padding: 0 0 60px;
  min-height: 80vh;
}

/* Header */
.catalog-header {
  text-align: center;
  padding: 50px 20px 10px;
  max-width: 800px;
  margin: 0 auto;
}

.catalog-header .catalog-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 12px;
  background: none !important;
  border: none !important;
  text-shadow: none !important;
  padding: 0 !important;
}

.catalog-header .catalog-subtitle {
  font-size: 1.15rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Trust Badges */
.catalog-trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 25px 20px 35px;
  max-width: 700px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

.trust-icon {
  font-size: 1.3rem;
}

/* Homepage Intro Content */
.catalog-intro-content {
  max-width: 1280px;
  margin: 50px auto 35px;
  padding: 0 30px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  text-align: center;
}

.catalog-intro-content p {
  margin-bottom: 1em;
}

.catalog-intro-content p:last-child {
  margin-bottom: 0;
}

/* Product Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Product Card */
.catalog-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.catalog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-bottom: none !important;
}

.catalog-card-link:hover {
  color: inherit;
  border-bottom: none !important;
}

.catalog-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px;
  background: #fafafa;
  min-height: 180px;
}

.catalog-card-image img {
  max-width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
}

.catalog-card-body {
  padding: 16px 20px 8px;
  flex: 1;
}

.catalog-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 8px;
  line-height: 1.3;
  background: none !important;
  border: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  text-align: left !important;
}

.catalog-card-desc {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.5;
  margin: 0;
}

.catalog-card-footer {
  padding: 12px 20px 20px;
}

.catalog-shop-btn {
  display: block;
  text-align: center;
  background-color: #CF954C;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 0;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.catalog-card-link:hover .catalog-shop-btn {
  opacity: 0.88;
}

/* Responsive: 3 columns at 1024px */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 24px;
  }
}

/* Responsive: 2 columns at 768px */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }

  .catalog-intro-content {
    padding: 0 16px;
  }

  .catalog-header .catalog-title {
    font-size: 1.4rem;
  }

  .catalog-header .catalog-subtitle {
    font-size: 1rem;
  }

  .catalog-trust-badges {
    gap: 16px;
  }

  .trust-badge {
    font-size: 0.85rem;
  }

  .catalog-card-image {
    min-height: 140px;
    padding: 16px 16px 12px;
  }

  .catalog-card-image img {
    max-height: 130px;
  }
}

/* Responsive: 1 column at 480px */
@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }

  .catalog-header {
    padding: 30px 16px 5px;
  }

  .catalog-intro-content {
    padding: 0 12px;
  }

  .catalog-header .catalog-title {
    font-size: 1.3rem;
  }

  .catalog-trust-badges {
    gap: 12px;
    padding: 15px 12px 25px;
  }
}
