/*
Theme Name: PopularFX Szulnijo Landing
Description: Installable PopularFX child theme with a Gutenberg landing page template, reusable block patterns, and the existing WooCommerce tweaks.
Author: Codex
Template: popularfx
Version: 1.0.0
Text Domain: popularfx-szulnijo-landing
*/

.woocommerce div.product .tabs.wc-tabs {
  display: none !important;
}

.woocommerce div.product .woocommerce-Tabs-panel {
  display: block !important;
}

@media (min-width: 900px) {
  .single-product .product div.images,
  .single-product .product .woocommerce-product-gallery {
    width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 100px !important;
  }

  .single-product .product .woocommerce-product-gallery__wrapper img {
    width: 200% !important;
    height: auto !important;
    object-fit: contain;
  }

  .single-product .product div.summary {
    width: calc(100% - 200px - 2rem) !important;
  }
}

.sj-landing-template {
  background:
    radial-gradient(circle at top left, rgba(216, 213, 203, 0.45), transparent 28%),
    linear-gradient(180deg, #fcf8f4 0%, #ffffff 24%, #f8f1ec 100%);
  color: #5d4c52;
}

.sj-landing-template article {
  margin: 0;
}

.sj-landing-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  padding: 110px 0 70px;
  min-height: 247px;
  background: linear-gradient(150deg, #2b2b2b 27%, #76606d 45%, #76606d 100%);
  color: #ffffff;
  isolation: isolate;
}

.sj-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sj-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.34;
  transform: scale(1.04);
  z-index: -2;
}

.sj-landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(43, 43, 43, 0.9) 27%, rgba(118, 96, 109, 0.9) 45%, rgba(118, 96, 109, 0.9) 100%);
  z-index: -1;
}

.sj-landing-hero__inner {
  width: min(1176px, calc(100% - 2rem));
  margin: 0 auto;
}

.sj-landing-template .sj-landing-title {
  margin: 0;
  max-width: 500px;
  font-family: "Noto Serif Tibetan", Amiri, Georgia, serif;
  font-size: 45px;
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff !important;
  text-transform: none;
  text-shadow: 0 8px 30px rgba(31, 20, 27, 0.16);
}

.sj-landing-subtitle {
  margin: 1.25rem 0 0;
  max-width: 46rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.sj-landing-content {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto 5rem;
}

.sj-landing-template .entry-content {
  color: #6d5a60;
}

.sj-landing-template .entry-content > * {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.sj-landing-template .entry-content > :where(:not(.alignwide):not(.alignfull)) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sj-landing-template .entry-content > .alignwide,
.sj-landing-template .entry-content > .wp-block-columns.alignwide,
.sj-landing-template .entry-content > .wp-block-group.alignwide {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.sj-landing-template .entry-content > .alignfull {
  max-width: none;
}

.sj-landing-template p,
.sj-landing-template li {
  font-family: Cabin, Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.8;
}

body.pagelayer-body .sj-landing-template .entry-content h2,
body.pagelayer-body .sj-landing-template .entry-content h2.wp-block-heading,
body.pagelayer-body .sj-landing-template .entry-content h3,
body.pagelayer-body .sj-landing-template .entry-content h3.wp-block-heading {
  margin-top: 2.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  max-width: 1080px !important;
  width: min(1080px, calc(100% - 2rem));
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: Raleway, Cabin, Arial, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.03em;
  text-transform: none !important;
  color: #76606d !important;
  position: relative;
  text-align: center;
}

body.pagelayer-body .sj-landing-template .entry-content h2,
body.pagelayer-body .sj-landing-template .entry-content h2.wp-block-heading {
  font-size: 35px !important;
}

body.pagelayer-body .sj-landing-template .entry-content h3,
body.pagelayer-body .sj-landing-template .entry-content h3.wp-block-heading {
  font-size: 35px !important;
}

body.pagelayer-body .sj-landing-template .entry-content h2::after,
body.pagelayer-body .sj-landing-template .entry-content h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 35%;
  max-width: 100%;
  height: 2px;
  transform: translateX(-50%);
  background: #76606d;
  opacity: 0.78;
}

body.pagelayer-body .sj-landing-template .entry-content h4,
body.pagelayer-body .sj-landing-template .entry-content h4.wp-block-heading {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-family: Raleway, Cabin, Arial, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  color: #76606d !important;
}

.sj-landing-template .wp-block-image img,
.sj-landing-template .wp-block-cover,
.sj-landing-template .wp-block-video video,
.sj-landing-template .wp-block-embed.is-provider-youtube iframe {
  border-radius: 1.4rem;
  box-shadow: 0 24px 60px rgba(80, 58, 68, 0.14);
}

.sj-landing-template .wp-block-separator {
  max-width: 120px;
  border-color: #cbbab2;
  opacity: 1;
}

.sj-landing-template .wp-block-button__link {
  padding: 0.95rem 1.65rem;
  border: 2px solid #76606d;
  border-radius: 999px;
  background: #76606d;
  color: #ffffff;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  box-shadow: 0 16px 35px rgba(118, 96, 109, 0.2);
}

.sj-landing-template .wp-block-button__link:hover,
.sj-landing-template .wp-block-button__link:focus {
  transform: translateY(-2px);
  background: #9f8984;
  border-color: #9f8984;
}

.sj-landing-template .wp-block-group.is-style-sj-intro,
.sj-landing-template .wp-block-group.is-style-sj-cta,
.sj-landing-template .wp-block-group.is-style-sj-card,
.sj-landing-template .wp-block-column.is-style-sj-card {
  border-radius: 1.4rem;
}

.sj-landing-template .wp-block-group.is-style-sj-intro {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, #fff9f6 0%, #fff2eb 100%);
  border-left: 5px solid #9f8984;
  box-shadow: 0 18px 38px rgba(118, 96, 109, 0.08);
}

.sj-landing-template .wp-block-group.is-style-sj-intro p:last-child {
  margin-bottom: 0;
}

.sj-landing-template .wp-block-group.is-style-sj-card,
.sj-landing-template .wp-block-column.is-style-sj-card {
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(159, 137, 132, 0.16);
  box-shadow: 0 24px 60px rgba(78, 57, 66, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  animation: sj-fade-up 0.7s ease both;
}

.sj-landing-template .wp-block-group.is-style-sj-card:hover,
.sj-landing-template .wp-block-column.is-style-sj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(118, 96, 109, 0.28);
  box-shadow: 0 28px 70px rgba(78, 57, 66, 0.15);
}

.sj-landing-template .wp-block-columns .wp-block-column.is-style-sj-card:nth-child(2) {
  animation-delay: 90ms;
}

.sj-landing-template .wp-block-columns .wp-block-column.is-style-sj-card:nth-child(3) {
  animation-delay: 180ms;
}

.sj-landing-template .wp-block-group.is-style-sj-cta {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, #5b4953 0%, #76606d 55%, #a48b86 100%);
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(78, 57, 66, 0.16);
}

.sj-landing-template .wp-block-group.is-style-sj-cta :is(h2, h3, p) {
  color: inherit;
}

.sj-landing-template .wp-block-group.is-style-sj-cta .wp-block-button__link {
  background: #ffffff;
  border-color: #ffffff;
  color: #5b4953;
  box-shadow: none;
}

.sj-landing-template .wp-block-group.is-style-sj-cta .wp-block-button__link:hover,
.sj-landing-template .wp-block-group.is-style-sj-cta .wp-block-button__link:focus {
  background: #f6ece9;
  border-color: #f6ece9;
}

.sj-landing-template .is-style-sj-section-heading {
  position: relative;
  padding-bottom: 0.55rem;
}

.sj-landing-template .is-style-sj-section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #76606d, #d8d5cb);
}

.sj-landing-template .wp-block-quote {
  padding: 1.2rem 1.4rem;
  border-left: 4px solid #9f8984;
  background: rgba(255, 249, 246, 0.9);
  border-radius: 0 1rem 1rem 0;
}

.sj-landing-template .entry-footer {
  max-width: 760px;
  margin: 2rem auto 0;
}

@keyframes sj-fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 781px) {
  .sj-landing-content {
    width: min(100%, calc(100% - 1.2rem));
  }

  .sj-landing-hero {
    min-height: 220px;
    padding: 88px 0 54px;
  }

  .sj-landing-template .sj-landing-title {
    font-size: 35px;
    max-width: 100%;
  }

  .sj-landing-template .wp-block-columns {
    gap: 1rem;
  }

  .sj-landing-template .entry-content > * {
    margin-bottom: 1.2rem;
  }

  body.pagelayer-body .sj-landing-template .entry-content h2,
  body.pagelayer-body .sj-landing-template .entry-content h2.wp-block-heading,
  body.pagelayer-body .sj-landing-template .entry-content h3,
  body.pagelayer-body .sj-landing-template .entry-content h3.wp-block-heading {
    width: min(100%, calc(100% - 1.5rem));
    font-size: 30px !important;
  }

  body.pagelayer-body .sj-landing-template .entry-content h2::after,
  body.pagelayer-body .sj-landing-template .entry-content h3::after {
    width: 55%;
  }
}
