/**
 * YAZ Theme — Homepage sections below Hero
 * Works with PHP sections + Elementor (yaz-el-* classes)
 */

/* ===== Shared section rhythm ===== */
.yaz-home-section,
.yaz-tagline-section,
.yaz-categories,
.yaz-products-section,
.yaz-trust-section,
.elementor-section.yaz-el-tagline,
.elementor-section.yaz-el-categories,
.elementor-section.yaz-el-categories-cards,
.elementor-section.yaz-el-products,
.elementor-section.yaz-el-trust,
.elementor-section.yaz-el-trust-cards {
  position: relative;
}

.yaz-container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Section headers ===== */
.yaz-section-title,
.yaz-home-section .yaz-section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.yaz-section-label,
.yaz-home-section .yaz-section-label .elementor-heading-title,
.elementor-widget.yaz-section-label .elementor-heading-title {
  display: inline-flex !important;
  align-items: center;
  gap: 0.875rem;
  font-family: 'Tajawal', sans-serif !important;
  font-style: normal !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--yaz-link) !important;
  margin: 0 0 0.625rem !important;
}

.yaz-section-label::before,
.yaz-section-label::after,
.yaz-home-section .yaz-section-label .elementor-heading-title::before,
.yaz-home-section .yaz-section-label .elementor-heading-title::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--yaz-gradient-nav);
  opacity: 0.8;
}

.yaz-section-title h2,
.yaz-home-section h2.elementor-heading-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: clamp(1.625rem, 3vw, 2.125rem) !important;
  font-weight: 500 !important;
  color: var(--yaz-heading) !important;
  margin: 0 0 0.5rem !important;
  line-height: 1.15 !important;
}

.yaz-section-title > p:not(.yaz-section-label),
.yaz-section-sub,
.yaz-tagline-sub {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--yaz-text);
  margin: 0;
}

/* ===== Tagline — hero continuation (PHP) ===== */
.yaz-hero-tail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.75rem 3.5rem;
  background:
    linear-gradient(168deg, color-mix(in srgb, var(--yaz-bg) 88%, var(--yaz-white)) 0%, var(--yaz-bg) 38%, color-mix(in srgb, var(--yaz-blush) 14%, var(--yaz-bg)) 100%);
}

.yaz-hero-tail .yaz-hero-line {
  top: 10%;
  bottom: 20%;
  opacity: 0.45;
}

.yaz-hero-tail__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}

.yaz-hero-tail .yaz-tagline-main {
  display: block;
  margin: 0 0 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--yaz-link) 88%, var(--yaz-accent));
}

.yaz-hero-tail__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--yaz-white));
}

.yaz-tagline-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--yaz-text) 92%, var(--yaz-heading));
}

.yaz-tagline-values li {
  display: inline-flex;
  align-items: center;
}

.yaz-tagline-values li + li::before {
  content: '·';
  margin-inline: 0.75rem;
  color: color-mix(in srgb, var(--yaz-link) 70%, var(--yaz-sage));
  opacity: 0.85;
}

.yaz-tagline-values--solo {
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .yaz-hero-tail {
    padding: 1.75rem 1.25rem 3rem;
  }

  .yaz-hero-tail .yaz-hero-line {
    display: none;
  }

  .yaz-tagline-values li + li::before {
    margin-inline: 0.5rem;
  }
}

/* ===== Categories ===== */
.yaz-categories,
.elementor-section.yaz-el-categories,
.elementor-section.yaz-el-categories-cards {
  background: var(--yaz-white) !important;
}

.yaz-categories {
  padding: 3rem 0 1rem;
}

.elementor-section.yaz-el-categories {
  padding-top: 3rem !important;
}

.elementor-section.yaz-el-categories-cards {
  padding-bottom: 4rem !important;
}

.yaz-categories-grid,
.elementor-section.yaz-el-categories-cards > .elementor-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.yaz-category-card,
.elementor-section.yaz-el-categories-cards .elementor-column > .elementor-widget-wrap {
  position: relative;
  text-align: center;
  padding: 2.25rem 1.5rem 1.5rem !important;
  background: var(--yaz-white) !important;
  border: 1px solid var(--yaz-border) !important;
  border-radius: var(--yaz-radius-lg) !important;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.elementor-section.yaz-el-categories-cards .elementor-widget.yaz-el-category-card .elementor-icon-box-wrapper {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.yaz-category-card::before,
.elementor-section.yaz-el-categories-cards .elementor-column > .elementor-widget-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yaz-gradient-nav);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yaz-category-card:hover,
.elementor-section.yaz-el-categories-cards .elementor-column:hover > .elementor-widget-wrap {
  transform: translateY(-5px);
  border-color: var(--yaz-sage) !important;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--yaz-sage) 16%, transparent) !important;
}

.yaz-category-card:hover::before,
.elementor-section.yaz-el-categories-cards .elementor-column:hover > .elementor-widget-wrap::before {
  transform: scaleX(1);
}

.yaz-cat-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.125rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--yaz-sage) 14%, transparent);
}

.yaz-cat-marker::before {
  content: '';
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--yaz-gradient-nav);
}

.yaz-category-card.yaz-hue-blush .yaz-cat-marker {
  background: color-mix(in srgb, var(--yaz-blush) 16%, transparent);
}

.yaz-category-card.yaz-hue-sky .yaz-cat-marker {
  background: color-mix(in srgb, var(--yaz-sky) 16%, transparent);
}

.yaz-category-card h3,
.elementor-widget.yaz-el-category-card .elementor-icon-box-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  margin: 0 0 0.375rem !important;
}

.yaz-category-card p,
.elementor-widget.yaz-el-category-card .elementor-icon-box-description {
  font-size: 0.8125rem !important;
  line-height: 1.65 !important;
  color: var(--yaz-text) !important;
  margin-bottom: 0 !important;
}

.elementor-widget.yaz-el-category-card .elementor-icon-box-icon {
  margin-bottom: 0.75rem !important;
}

.elementor-section.yaz-el-categories-cards .elementor-column.yaz-hue-blush > .elementor-widget-wrap::after,
.elementor-section.yaz-el-categories-cards .elementor-widget.yaz-hue-blush .elementor-icon-box-icon {
  --yaz-card-hue: var(--yaz-blush);
}

.elementor-section.yaz-el-categories-cards .elementor-column.yaz-hue-sage > .elementor-widget-wrap,
.elementor-section.yaz-el-categories-cards .elementor-widget.yaz-hue-sage .elementor-icon-box-icon {
  --yaz-card-hue: var(--yaz-sage);
}

.elementor-section.yaz-el-categories-cards .elementor-column.yaz-hue-sky > .elementor-widget-wrap,
.elementor-section.yaz-el-categories-cards .elementor-widget.yaz-hue-sky .elementor-icon-box-icon {
  --yaz-card-hue: var(--yaz-sky);
}

.elementor-widget.yaz-el-category-card .elementor-icon-box-icon .elementor-icon {
  background: color-mix(in srgb, var(--yaz-card-hue, var(--yaz-sage)) 14%, transparent) !important;
}

.elementor-section.yaz-el-categories-cards .elementor-button {
  margin-top: 0.875rem;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.375rem !important;
  border-radius: 999px !important;
}

/* ===== Products ===== */
.yaz-products-section,
.elementor-section.yaz-el-products {
  padding: 4rem 0 !important;
  background: var(--yaz-bg) !important;
}

.yaz-products-section .products,
.yaz-products-section ul.products,
.elementor-section.yaz-el-products .products,
.elementor-section.yaz-el-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.125rem;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  list-style: none;
}

.yaz-products-section .product,
.yaz-products-section ul.products li.product,
.elementor-section.yaz-el-products .product {
  background: var(--yaz-white) !important;
  border: 1px solid var(--yaz-border) !important;
  border-radius: var(--yaz-radius-lg) !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.yaz-products-section .product:hover,
.elementor-section.yaz-el-products .product:hover {
  transform: translateY(-4px);
  border-color: var(--yaz-sage) !important;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--yaz-sage) 14%, transparent) !important;
}

.yaz-section-cta,
.elementor-section.yaz-el-products .elementor-widget-button {
  text-align: center;
  margin-top: 0.5rem;
}

.yaz-products-section .yaz-btn-outline,
.elementor-section.yaz-el-products .elementor-button {
  border-radius: 999px !important;
  letter-spacing: 0.06em;
  font-weight: 600 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yaz-products-section .yaz-btn-outline:hover,
.elementor-section.yaz-el-products .elementor-button:hover {
  transform: translateY(-2px);
}

/* ===== Trust ===== */
.yaz-trust-section,
.elementor-section.yaz-el-trust,
.elementor-section.yaz-el-trust-cards {
  background: var(--yaz-white) !important;
}

.yaz-trust-section {
  padding: 4rem 0;
  border-top: 1px solid var(--yaz-border);
}

.elementor-section.yaz-el-trust-cards {
  padding-bottom: 4rem !important;
  border-bottom: 1px solid var(--yaz-border);
}

.yaz-trust-grid,
.elementor-section.yaz-el-trust-cards > .elementor-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.yaz-trust-badge,
.elementor-widget.yaz-el-trust-badge .elementor-icon-box-wrapper {
  text-align: center;
  padding: 1.5rem 1.25rem !important;
  border-inline-start: 1px solid var(--yaz-border);
  background: transparent !important;
  border-radius: 0 !important;
  transition: background 0.3s ease;
}

.yaz-trust-grid .yaz-trust-badge:first-child,
.elementor-section.yaz-el-trust-cards .elementor-column:first-child .elementor-icon-box-wrapper {
  border-inline-start: none;
}

.yaz-trust-badge:hover,
.elementor-widget.yaz-el-trust-badge:hover .elementor-icon-box-wrapper {
  background: color-mix(in srgb, var(--yaz-bg) 65%, transparent) !important;
}

.yaz-trust-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--yaz-sage) 55%, transparent);
  background: color-mix(in srgb, var(--yaz-sage) 10%, transparent);
}

.yaz-trust-marker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yaz-sage);
}

.yaz-trust-badge h4,
.elementor-widget.yaz-el-trust-badge .elementor-icon-box-title {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.375rem !important;
  color: var(--yaz-heading) !important;
}

.yaz-trust-badge p,
.elementor-widget.yaz-el-trust-badge .elementor-icon-box-description {
  font-size: 0.8125rem !important;
  line-height: 1.6 !important;
  color: var(--yaz-text) !important;
  margin: 0 !important;
}

.elementor-widget.yaz-el-trust-badge .elementor-icon-box-icon {
  margin-bottom: 0.875rem !important;
}

/* ===== Buttons shared ===== */
.yaz-home-section .yaz-btn,
.yaz-category-card .yaz-btn {
  border-radius: 999px;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yaz-category-card .yaz-btn:hover {
  transform: translateY(-2px);
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .yaz-categories-grid,
  .elementor-section.yaz-el-categories-cards > .elementor-container {
    grid-template-columns: 1fr;
  }

  .yaz-products-section .products,
  .yaz-products-section ul.products,
  .elementor-section.yaz-el-products .products,
  .elementor-section.yaz-el-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .yaz-trust-grid,
  .elementor-section.yaz-el-trust-cards > .elementor-container {
    grid-template-columns: 1fr;
  }

  .yaz-trust-badge,
  .elementor-widget.yaz-el-trust-badge .elementor-icon-box-wrapper {
    border-inline-start: none !important;
    border-top: 1px solid var(--yaz-border);
    padding-top: 1.5rem !important;
  }

  .yaz-trust-grid .yaz-trust-badge:first-child,
  .elementor-section.yaz-el-trust-cards .elementor-column:first-child .elementor-icon-box-wrapper {
    border-top: none;
  }
}

@media (max-width: 600px) {
  .yaz-categories,
  .yaz-products-section,
  .yaz-trust-section {
    padding: 3rem 0;
  }
}
