/* ==========================================================================
   Shopify Content Styles
   Styles for migrated Shopify content (blogs, products, collections, pages)
   using Webflow's design system (Satoshi + Inter fonts, FasCat colors)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout & Containers
   -------------------------------------------------------------------------- */

.sc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sc-article-container,
.sc-page-container {
  max-width: 800px;
}

.sc-product-container {
  max-width: 1100px;
}

/* --------------------------------------------------------------------------
   Article Hero / Header
   -------------------------------------------------------------------------- */

.sc-article-hero {
  padding-top: 120px;
  padding-bottom: 24px;
}

.sc-breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.sc-breadcrumb-link {
  color: #ff471c;
  text-decoration: none;
}

.sc-breadcrumb-link:hover {
  text-decoration: underline;
}

.sc-breadcrumb-separator {
  margin: 0 8px;
  color: #9ca3af;
}

.sc-breadcrumb-current {
  color: #374151;
}

.sc-article-title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #131e29;
  margin-bottom: 16px;
}

.sc-article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 32px;
}

.sc-article-author {
  font-weight: 500;
}

.sc-article-date {
  color: #9ca3af;
}

.sc-article-hero-image {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.sc-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Article Body (Shopify Rich Text Content)
   -------------------------------------------------------------------------- */

.sc-article-body-section {
  padding-top: 24px;
  padding-bottom: 80px;
}

.sc-article-body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #374151;
}

.sc-article-body h2 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #131e29;
  margin-top: 48px;
  margin-bottom: 16px;
}

.sc-article-body h3 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #131e29;
  margin-top: 36px;
  margin-bottom: 12px;
}

.sc-article-body h4 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #131e29;
  margin-top: 28px;
  margin-bottom: 10px;
}

.sc-article-body p {
  margin-bottom: 20px;
}

.sc-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.sc-article-body a {
  color: #ff471c;
  text-decoration: underline;
}

.sc-article-body a:hover {
  color: #e03e17;
}

.sc-article-body ul,
.sc-article-body ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

.sc-article-body li {
  margin-bottom: 8px;
}

.sc-article-body blockquote {
  border-left: 4px solid #ff471c;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f9fafb;
  font-style: italic;
  color: #4b5563;
}

.sc-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.sc-article-body th,
.sc-article-body td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.sc-article-body th {
  background: #f3f4f6;
  font-weight: 600;
  color: #131e29;
}

.sc-article-body iframe {
  max-width: 100%;
  margin: 24px 0;
  border-radius: 8px;
}

/* Responsive video embeds — fix broken <p class="embed-container"> and
   <div class="video-container"> wrappers from Shopify content */
.embed-container,
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}
.embed-container iframe,
.embed-container object,
.embed-container embed,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Article Tags */
.sc-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.sc-tag {
  display: inline-block;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.sc-tag:hover {
  background: #e5e7eb;
  color: #131e29;
}

/* --------------------------------------------------------------------------
   Blog Listing Pages
   -------------------------------------------------------------------------- */

.sc-listing-hero {
  padding-top: 120px;
  padding-bottom: 24px;
}

.sc-listing-title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #131e29;
}

.sc-listing-description {
  font-size: 17px;
  color: #6b7280;
  margin-top: 12px;
  max-width: 600px;
}

/* Tag Filters */
.sc-tag-filter-section {
  padding-top: 0;
  padding-bottom: 0;
}

.sc-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.sc-tag-filter {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}

.sc-tag-filter:hover {
  color: #131e29;
  border-color: #131e29;
}

.sc-tag-filter-active {
  color: #fff;
  background: #131e29;
  border-color: #131e29;
}

/* Article Grid */
.sc-article-grid-section {
  padding-top: 40px;
  padding-bottom: 80px;
}

.sc-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sc-article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sc-article-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sc-card-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.sc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.sc-article-card:hover .sc-card-img {
  transform: scale(1.03);
}

.sc-card-content {
  padding: 20px;
}

.sc-card-title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #131e29;
  line-height: 1.3;
  margin-bottom: 8px;
}

.sc-card-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-card-meta {
  margin-top: 12px;
}

.sc-card-date {
  font-size: 13px;
  color: #9ca3af;
}

/* Pagination */
.sc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.sc-pagination-link {
  font-size: 14px;
  font-weight: 500;
  color: #ff471c;
  text-decoration: none;
}

.sc-pagination-link:hover {
  text-decoration: underline;
}

.sc-pagination-info {
  font-size: 14px;
  color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Product Pages
   -------------------------------------------------------------------------- */

.sc-product-hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.sc-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sc-product-main-image {
  border-radius: 12px;
  overflow: hidden;
}

.sc-product-img {
  width: 100%;
  height: auto;
  display: block;
}

.sc-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.sc-product-thumbnail {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.sc-thumb-img {
  width: 100%;
  height: auto;
  display: block;
}

.sc-product-title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #131e29;
  margin-bottom: 8px;
}

.sc-product-type {
  font-size: 14px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sc-product-price {
  font-size: 28px;
  font-weight: 600;
  color: #131e29;
  margin-bottom: 24px;
}

.sc-product-cta {
  display: inline-block;
  margin-top: 8px;
}

.sc-product-body-section {
  padding-bottom: 80px;
}

.sc-product-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.sc-product-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.sc-product-body h2,
.sc-product-body h3 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  color: #131e29;
  margin-top: 32px;
  margin-bottom: 12px;
}

.sc-product-body a {
  color: #ff471c;
}

/* Product Grid (for collections) */
.sc-product-grid-section {
  padding-top: 40px;
  padding-bottom: 80px;
}

.sc-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sc-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sc-product-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sc-card-price {
  font-size: 15px;
  font-weight: 600;
  color: #131e29;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Static Pages (about, FAQ, terms, etc.)
   -------------------------------------------------------------------------- */

.sc-page-hero {
  padding-top: 120px;
  padding-bottom: 24px;
}

.sc-page-title {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #131e29;
}

.sc-page-body-section {
  padding-top: 0;
  padding-bottom: 80px;
}

.sc-page-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.sc-page-body h2 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #131e29;
  margin-top: 48px;
  margin-bottom: 16px;
}

.sc-page-body h3 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #131e29;
  margin-top: 36px;
  margin-bottom: 12px;
}

.sc-page-body p {
  margin-bottom: 18px;
}

.sc-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.sc-page-body a {
  color: #ff471c;
  text-decoration: underline;
}

.sc-page-body ul,
.sc-page-body ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

.sc-page-body li {
  margin-bottom: 8px;
}

.sc-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.sc-page-body th,
.sc-page-body td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.sc-page-body th {
  background: #f3f4f6;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Scraped Shopify Theme Compatibility
   CSS shims for common Shopify theme classes found in scraped content
   (hire-a-coach, coaching products, etc.)
   -------------------------------------------------------------------------- */

.sc-scraped-content .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: block !important;
}

.sc-scraped-content .shopify-section {
  width: 100%;
}

/* Shopify Grid System */
.sc-scraped-content .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-scraped-content .grid__item {
  min-width: 0;
}

/* Coach Cards (hire-a-coach page) */
.sc-scraped-content .coach-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sc-scraped-content .coach-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sc-scraped-content .coach-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.sc-scraped-content .coach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-scraped-content .coach-image .image-wrapper {
  display: block;
  width: 100%;
  height: 100%;
}

.sc-scraped-content .coach-details {
  padding: 20px;
  flex: 1;
}

.sc-scraped-content .coach-details h3,
.sc-scraped-content .coach-details .h5 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #131e29;
  margin-bottom: 8px;
}

.sc-scraped-content .coach-details h3 a {
  color: inherit;
  text-decoration: none;
}

.sc-scraped-content .coach-details p {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.sc-scraped-content .coach-card > a.button,
.sc-scraped-content .button--primary {
  display: block;
  text-align: center;
  padding: 14px 24px;
  margin: 0 20px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #ff471c;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.sc-scraped-content .coach-card > a.button:hover,
.sc-scraped-content .button--primary:hover {
  background: #e03e17;
}

/* Coaches Collection section */
.sc-scraped-content .coaches-collection {
  padding: 40px 0;
}

.sc-scraped-content .coaches-collection h2 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #131e29;
  margin-bottom: 32px;
}

.sc-scraped-content .text-center {
  text-align: center;
}

/* Shopify section headings */
.sc-scraped-content .h4 {
  font-size: 28px;
  font-weight: 700;
}

.sc-scraped-content .h5 {
  font-size: 20px;
  font-weight: 600;
}

/* Product page scraped content */
.sc-scraped-content .product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sc-scraped-content .product-single__photos img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.sc-scraped-content .product-single__meta h1 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #131e29;
}

/* Generic section styling for scraped content */
.sc-scraped-content section.section {
  padding: 40px 0;
}

/* List styling in scraped content */
.sc-scraped-content .list-wrapper ul {
  padding-left: 24px;
  margin: 16px 0;
}

.sc-scraped-content .list-wrapper li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
}

/* Image handling in scraped content */
.sc-scraped-content img {
  max-width: 100%;
  height: auto;
}

/* Links in scraped content */
.sc-scraped-content a {
  color: #ff471c;
  text-decoration: none;
}

.sc-scraped-content a:hover {
  text-decoration: underline;
}

/* Orange text accent used in Shopify theme */
.sc-scraped-content .orange-text {
  color: #ff471c;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .sc-scraped-content .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .sc-scraped-content .product-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .sc-article-grid,
  .sc-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .sc-product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sc-article-title {
    font-size: 34px;
  }

  .sc-listing-title,
  .sc-page-title {
    font-size: 38px;
  }
}

@media (max-width: 479px) {
  .sc-scraped-content .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-article-grid,
  .sc-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-article-title {
    font-size: 28px;
  }

  .sc-listing-title,
  .sc-page-title {
    font-size: 30px;
  }

  .sc-product-title {
    font-size: 28px;
  }

  .sc-article-hero,
  .sc-listing-hero,
  .sc-product-hero,
  .sc-page-hero {
    padding-top: 100px;
  }

  .sc-tag-filters {
    gap: 6px;
  }

  .sc-tag-filter {
    padding: 6px 14px;
    font-size: 13px;
  }
}
