/* Unified Section Styles */

/* Base section styles */
:where(.p-home-partner),
:where(.p-home-features),
:where(.p-home-about),
:where(.p-home-services),
:where(.p-home-equipment),
:where(.p-home-cta) {
  position: relative;
  padding: var(--wp--preset--spacing--sm0) 0;
  overflow: hidden;
}

/* Container styles */
:where(.p-home-partner__container),
:where(.p-home-features__container),
:where(.p-home-about__container),
:where(.p-home-services__container),
:where(.p-home-equipment__container),
:where(.p-home-cta__container) {
  max-width: var(--wp--custom--layout--content-size);
  margin: 0 auto;
  padding: 0 var(--wp--preset--spacing--20);
  position: relative;
  z-index: 2;
}

/* Background decoration styles */
:where(.p-home-partner__bg-decoration),
:where(.p-home-features__bg-decoration),
:where(.p-home-equipment__bg-decoration) {
  position: absolute;
  z-index: 0;
  opacity: 0.1;
}

:where(.p-home-partner__bg-decoration) {
  top: -20%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translateX(-50%);
}

:where(.p-home-features__bg-decoration) {
  bottom: 10%;
  right: -15%;
  width: 900px;
  height: 900px;
}

:where(.p-home-equipment__bg-decoration) {
  bottom: -10%;
  left: -5%;
  width: 450px;
  height: 450px;
}

:where(.p-home-partner__bg-decoration img),
:where(.p-home-features__bg-decoration img),
:where(.p-home-equipment__bg-decoration img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--wp--custom--border-radius--large);
}

/* Section backgrounds */
:where(.p-home-partner) {
  background: var(--wp--preset--color--gray-200);
}

:where(.p-home-features) {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--gray-200) 0%,
    var(--wp--preset--color--white) 50%,
    var(--wp--preset--color--gray-300) 100%
  );
}

:where(.p-home-services) {
  background: var(--wp--preset--color--white);
}

:where(.p-home-equipment) {
  background: var(--wp--preset--color--gray-200);
}

:where(.p-home-cta) {
  background: linear-gradient(
    135deg,
    var(--wp--preset--color--primary-700) 0%,
    var(--wp--preset--color--gray-900) 100%
  );
  color: var(--wp--preset--color--white);
}

/* CTA background decorations */
:where(.p-home-cta__bg-decoration--1) {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  z-index: 0;
  opacity: 0.05;
  filter: blur(100px);
}

:where(.p-home-cta__bg-decoration--2) {
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  z-index: 0;
  opacity: 0.03;
  filter: blur(80px);
}

/* Inner content layout */
:where(.p-home-partner__inner),
:where(.p-home-about__content),
:where(.p-home-equipment__content) {
  display: grid;
  gap: var(--wp--preset--spacing--3-xl);
  align-items: center;
}

:where(.p-home-partner__inner),
:where(.p-home-about__content),
:where(.p-home-equipment__content) {
  grid-template-columns: 1fr 1fr;
}

/* Features grid layout */
:where(.p-home-features__list) {
  display: grid;
  gap: var(--wp--preset--spacing--xs);
  margin-top: var(--wp--preset--spacing--3-xl);
}

/* Features items */
:where(.p-home-features__item) {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--wp--custom--border-radius--large);
  padding: var(--wp--preset--spacing--2-xl) var(--wp--preset--spacing--xs);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

:where(.p-home-features__item:hover) {
  transform: translateY(-8px);
  box-shadow: var(--wp--custom--box-shadow--large);
}

/* Services grid */
:where(.p-home-services__grid) {
  display: grid;
  gap: var(--wp--preset--spacing--lg);
  margin: var(--wp--preset--spacing--3-xl) 0;
  list-style: none;
  padding: 0;
}

/* Services items */
:where(.p-home-services__item) {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--wp--custom--border-radius--medium);
  transition: all 0.3s ease;
}

:where(.p-home-services__item:hover) {
  transform: translateY(-4px);
  box-shadow: var(--wp--custom--box-shadow--medium);
}

:where(.p-home-services__link) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--20);
  text-decoration: none;
  color: inherit;
}

:where(.p-home-services__icon) {
  font-size: var(--wp--preset--font-size--3-xl);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  margin-bottom: var(--wp--preset--spacing--base);
}

:where(.p-home-services__text) {
  font-weight: 500;
  font-size: var(--wp--preset--font-size--sm);
  text-align: center;
  margin: 0;
}

/* Equipment features */
:where(.p-home-equipment__features) {
  display: grid;
  gap: var(--wp--preset--spacing--20);
  margin-top: var(--wp--preset--spacing--xs);
}

:where(.p-home-equipment__feature) {
  padding: var(--wp--preset--spacing--base);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--wp--custom--border-radius--small);
  border-left: 4px solid var(--color-primary);
}

:where(.p-home-equipment__feature h4) {
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  margin: 0 0 var(--wp--preset--spacing--sm) 0;
  color: var(--color-heading);
}

:where(.p-home-equipment__feature p) {
  font-size: var(--wp--preset--font-size--sm);
  margin: 0;
  color: var(--color-text-secondary);
}

/* Partner badges */
:where(.p-home-partner__badges) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--base);
}

:where(.p-home-partner__badge) {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--base);
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--xs);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: var(--wp--custom--border-radius--xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

:where(.p-home-partner__badge-icon) {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

:where(.p-home-partner__badge-text) {
  font-weight: 600;
  color: var(--color-text);
}

/* CTA actions layout */
:where(.p-home-cta__actions) {
  display: grid;
  gap: var(--wp--preset--spacing--40);
  margin-top: var(--wp--preset--spacing--3-xl);
  text-align: center;
}

:where(.p-home-cta__buttons) {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--base);
  align-items: center;
}
