/* AYENYX — premium finishing touches */

:root {
  --ayenyx-font: 'Outfit', Verdana, Arial, sans-serif;
  --ayenyx-font-display: 'Outfit', Verdana, Arial, sans-serif;
  --ayenyx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ayenyx-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ayenyx-gradient-accent: linear-gradient(180deg, #ee0039 0%, #c3002f 100%);
  --ayenyx-gradient-brand: linear-gradient(135deg, #c3002f 0%, #fbaa25 100%);
  --ayenyx-gradient-text: #f5f5f7;
}

/* Sitewide clean product typography */
html,
body,
button,
input,
select,
textarea,
.btn,
.nav-link,
.navbar,
.products-mega-menu,
.home-principles,
.home-features,
.home-value,
.home-promo,
.home-blog,
.products-page,
.product-catalog,
.contact-page,
.legal-page,
.about-intro,
.about-vision,
.site-footer {
  font-family: var(--ayenyx-font) !important;
}

/* Watermark layers are defined in theme.css */

/* Display typography — single product sans */
.home-hero__title,
.home-categories__title,
.home-value__title,
.home-features__title,
.home-principles__title-accent,
.home-principles__title-main,
.home-principles__title,
.home-principles__row-title,
.home-promo__title,
.home-blog__title,
.home-testimonials__title,
.home-value__card-title,
.home-features__card-title,
.home-principles__item-title,
.home-blog__card-title,
.home-about__title,
.pro-heading,
.contact-page__title,
.about-vision__title,
.product-catalog__title,
.products-page .pro-heading {
  font-family: var(--ayenyx-font-display) !important;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-value__title,
.home-features__title,
.home-blog__title,
.home-testimonials__title,
.home-promo__title,
.home-about__title,
.home-principles__title {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.home-value__card-title,
.home-features__card-title,
.home-principles__item-title,
.home-blog__card-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-value__text,
.home-features__text,
.home-blog__text,
.home-testimonials__text,
.home-about__text,
.home-promo__text {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* Section header polish */
.home-value__header,
.home-features__header,
.home-blog__header,
.home-testimonials__header {
  position: relative;
}

.home-value__title,
.home-features__title,
.home-blog__title,
.home-testimonials__title {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.home-value__title::after {
  display: none;
}

.home-blog__title::after,
.home-testimonials__title::after {
  display: none;
}

.home-principles__title-accent {
  color: var(--ayenyx-secondary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Promo & CTA buttons â€” handled in theme.css */
.home-promo__btn--ghost {
  backdrop-filter: none;
}

/* Premium pill tags */
.home-value__tag,
.home-promo__tag,
.home-blog__tag,
.home-testimonials__tag {
  box-shadow: none;
}

@keyframes ayenyxPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

/* Nav link — Nissan-style hairline underline */
.navbar-compact #navbarNav ul li .nav-link,
.navbar-compact .products-mega-trigger {
  position: relative;
  overflow: visible;
}

.navbar-compact #navbarNav ul li .nav-link::after,
.navbar-compact .products-mega-trigger::after {
  content: '';
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 30px;
  width: 0;
  height: 1px;
  border-radius: 0;
  background: #c3002f;
  transform: translateX(-50%);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: block !important;
}

.navbar-compact #navbarNav ul li .nav-link:hover::after,
.navbar-compact #navbarNav ul li .nav-link.active::after,
.navbar-compact .products-mega-trigger:hover::after,
.navbar-compact .products-mega-dropdown.is-open .products-mega-trigger::after {
  width: 100%;
  display: block !important;
}

@media (min-width: 992px) {
  .navbar-compact #navbarNav ul li .nav-link.active {
    color: #ffffff !important;
  }
}

/* White scrolled bar — all links stay dark (including active Home) */
.nav_sticky.is-scrolled .navbar-compact #navbarNav ul li .nav-link,
.nav_sticky.is-scrolled .navbar-compact #navbarNav ul li .nav-link.scrolled,
.nav_sticky.is-scrolled .navbar-compact #navbarNav ul li .nav-link.active,
.nav_sticky.is-scrolled .navbar-compact #navbarNav ul li a,
.nav_sticky.is-scrolled .navbar-compact .products-mega-trigger,
.nav_sticky.is-scrolled .navbar-compact .products-mega-trigger.active,
.nav_sticky.is-scrolled .navbar-compact .products-mega-dropdown.is-open .products-mega-trigger {
  color: #111111 !important;
}

body.products-mega-open .navbar-compact #navbarNav ul li:not(.products-mega-dropdown) .nav-link.active {
  color: rgba(245, 245, 247, 0.42) !important;
}

body.products-mega-open .navbar-compact .products-mega-dropdown.is-open .products-mega-trigger {
  color: #ffffff !important;
}

body.products-mega-open .nav_sticky.is-scrolled .navbar-compact #navbarNav ul li:not(.products-mega-dropdown) .nav-link,
body.products-mega-open .nav_sticky.is-scrolled .navbar-compact #navbarNav ul li:not(.products-mega-dropdown) .nav-link.active {
  color: rgba(17, 17, 17, 0.45) !important;
}

body.products-mega-open .nav_sticky.is-scrolled .navbar-compact .products-mega-dropdown.is-open .products-mega-trigger,
body.products-mega-open .nav_sticky.is-scrolled .navbar-compact .products-mega-trigger {
  color: #111111 !important;
}

/* Card shine sweep */
.home-blog__media,
.home-testimonials__card {
  position: relative;
  overflow: hidden;
}

.home-blog__media::after,
.home-testimonials__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 58%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ayenyx-ease-out);
  pointer-events: none;
}

.home-blog__card-link:hover .home-blog__media::after,
.home-testimonials__card:hover::after {
  transform: translateX(120%);
}

.home-value__card::after {
  display: none !important;
  content: none !important;
}

/* Elevated card hover */
.home-value__card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

.home-testimonials__card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42) !important;
}

/* Icon glow */
.home-value__icon {
  box-shadow: 0 8px 24px rgba(166, 0, 40, 0.12);
  transition: transform 0.35s var(--ayenyx-ease-spring), box-shadow 0.35s ease;
}

.home-value__card:hover .home-value__icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 28px rgba(166, 0, 40, 0.22);
}

.home-principles__icon {
  filter: none;
  transition: none;
}

.home-principles__item:hover .home-principles__icon {
  transform: none;
}

/* Principles accent title â€” see block above */

/* Removed duplicate principles rule */

/* Blog card premium border */
.home-blog__card-link:hover .home-blog__media {
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: none;
}

/* Section dividers — homepage rhythm handled in home-flow.css */
.home-value,
.home-promo,
.home-testimonials {
  border-top-color: var(--ayenyx-border-subtle, rgba(255, 255, 255, 0.08));
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ayenyx-ease-out),
    transform 0.8s var(--ayenyx-ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal='scale'] {
  transform: translateY(20px) scale(0.97);
}

[data-reveal='scale'].is-revealed {
  transform: translateY(0) scale(1);
}

[data-reveal-delay='1'] { transition-delay: 0.1s; }
[data-reveal-delay='2'] { transition-delay: 0.2s; }
[data-reveal-delay='3'] { transition-delay: 0.3s; }
[data-reveal-delay='4'] { transition-delay: 0.4s; }

/* Partner strip overlays handled in partner-logo-strip.css */

/* Footer polish — base styles live in footer.css */
.site-footer__heading {
  color: var(--ayenyx-primary, #c3002f) !important;
}

/* Slider arrows */
.hero-slider__arrow:hover,
.home-features__arrow:hover,
.home-testimonials__arrow:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* —— Full-site premium page surfaces —— */
.contact-page,
.legal-page,
.products-page,
.about-page,
.about-intro,
.about-vision {
  font-family: var(--ayenyx-font);
  -webkit-font-smoothing: antialiased;
}

.home-promo__tag,
.home-blog__tag {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ayenyx-primary) !important;
  gap: 0.65rem;
}

.home-promo__tag::before,
.home-blog__tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--ayenyx-primary);
  flex-shrink: 0;
}

.products-page .pro-heading {
  letter-spacing: -0.035em;
}

.home-promo__banner-overlay {
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.18) 46%,
    rgba(0, 0, 0, 0.42) 100%
  ) !important;
}

/* Lifted cards — Apple dark: flat black + hairline */
.home-features__card-link,
.product-card,
.contact-page__card,
.contact-page__form-card,
.products-page__highlight-card,
.products-page__stat,
.home-promo__box,
.home-testimonials__card {
  background: #1b1b1e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  border-radius: var(--ayenyx-radius-lg, 14px) !important;
}

.home-features__card-link:hover,
.product-card:hover,
.products-page__highlight-card:hover,
.products-page__stat:hover {
  background: #141414 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
}

.home-features__lead,
.home-principles__lead,
.home-principles__intro,
.home-blog__lead,
.home-value__lead,
.contact-page__lead,
.product-catalog__lead,
.products-page .content {
  color: var(--ayenyx-text-muted) !important;
}

.home-features__title,
.home-principles__title,
.home-value__title,
.product-catalog__title,
.contact-page__title,
.pro-heading {
  color: #f5f5f7 !important;
  letter-spacing: -0.04em !important;
}

/* Kill muddy section backgrounds — pure black + sharp photos */
.home-features__bg-img,
.home-principles__bg-img {
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-features__bg-shade,
.home-principles__bg-shade,
.home-features__bg-glow,
.home-principles__bg-glow {
  display: none !important;
}

.site-footer {
  background: #000000 !important;
}

.home-features,
.home-principles,
.products-page,
.product-catalog,
.contact-page,
.about-intro,
.about-vision,
.home-promo,
.home-testimonials {
  background-color: #000000 !important;
  background-image: none !important;
}

.home-features,
.home-principles {
  background: #000000 !important;
}

.products-page,
.product-catalog {
  background: #000000 !important;
}

.contact-page,
.legal-page {
  background: #000000 !important;
}

/* HD clarity — media + product imagery */
.hero-slider__media,
.home-hero__image,
.home-hero__slide img,
.home-categories__media img,
.home-features__media img,
.home-value__visual img,
.home-promo__banner img,
.home-blog__media img,
.product-catalog__media img,
.product-card__media img,
.about-vision__media img {
  filter: none !important;
  opacity: 1 !important;
}

.home-hero__image,
.home-hero__slide img {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: right center !important;
}

.hero-slider__shade {
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.08) 68%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 45%, rgba(0, 0, 0, 0.45) 100%) !important;
}

.home-promo__banner-overlay {
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.18) 46%,
    rgba(0, 0, 0, 0.42) 100%
  ) !important;
}

.home-features__media-overlay {
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%) !important;
}

.home-features__card-link:hover .home-features__media-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%) !important;
}

.home-promo__box {
  background: #1b1b1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .home-value__card::after,
  .home-features__card-link::after,
  .home-principles__item::after,
  .home-blog__media::after,
  .home-testimonials__card::after {
    display: none;
  }

  /* Consistent page gutters + avoid horizontal scroll from clipped edges */
  .home-principles__container,
  .home-features__container,
  .home-blog__container,
  .site-footer__wrap,
  .product-catalog__section,
  .product-detail__specs-section,
  .product-detail__related,
  .product-catalog__other,
  .products-page__catalog,
  .products-page__highlights,
  .about-vision__wrap {
    width: min(100% - (2 * var(--ayenyx-gutter, 1rem)), var(--ayenyx-container, 1120px)) !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .home-features__card-title {
    font-size: 1.05rem !important;
  }

  .home-features__card-text {
    font-size: 0.9375rem !important;
    line-height: 1.5;
  }
}

@media (max-width: 575px) {
  .product-card__brand.brand-mark--text,
  .product-card__brand-more,
  .site-footer__heading,
  .site-footer__copyright,
  .site-footer__bottom-links a {
    font-size: 0.8125rem !important;
  }

  .l_text {
    font-size: 0.875rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-value__card::after,
  .home-features__card-link::after,
  .home-principles__item::after,
  .home-blog__media::after,
  .home-testimonials__card::after {
    display: none;
  }
}
