/* ==========================================================================
   DeoThemes Design Review Fixes — 2026-03-25
   FINDING-001: Branded typography (Plus Jakarta Sans for headings)
   FINDING-005: Standardize H2 to 48px
   FINDING-006: Entrance animations on scroll
   FINDING-007: Touch target sizing
   ========================================================================== */

/* --- FINDING-001: Apply Plus Jakarta Sans to headings --- */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, 'Segoe UI', sans-serif !important;
}

/* Hero H1 — slightly heavier for impact */
.elementor-page-12742 h1.elementor-heading-title,
.elementor-page-12742 .elementor-widget-heading h1.elementor-heading-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* --- FINDING-005: Normalize H2 section headings to 48px --- */
/* Only target section-level H2s, not hero subtitle */
.elementor-top-section .elementor-widget-heading h2.elementor-heading-title {
  font-size: 48px !important;
}

/* Preserve hero subtitle at its original smaller size */
.elementor-page-12742 .elementor-top-section .elementor-element-12bb277 .elementor-widget-container h2.elementor-heading-title {
  font-size: 20px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.6 !important;
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif !important;
}

/* Keep H1 at its current size */
.elementor-widget-heading h1.elementor-heading-title {
  font-size: 56px !important;
}

/* Mobile heading adjustments */
@media (max-width: 767px) {
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 36px !important;
  }
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 32px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 40px !important;
  }
}


/* --- FINDING-006: Entrance animations on scroll --- */

/* Base state: elements start invisible and slightly below */
.deo-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animated state when element enters viewport */
.deo-animate.deo-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children for cascading effect */
.deo-animate.deo-visible:nth-child(2) { transition-delay: 0.1s; }
.deo-animate.deo-visible:nth-child(3) { transition-delay: 0.2s; }
.deo-animate.deo-visible:nth-child(4) { transition-delay: 0.15s; }

/* Theme card hover lift */
.elementor-widget-deo-wordpress-themes .entry-item,
.elementor-widget-deo-freebies .entry-item {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.elementor-widget-deo-wordpress-themes .entry-item:hover,
.elementor-widget-deo-freebies .entry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .deo-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .elementor-widget-deo-wordpress-themes .entry-item,
  .elementor-widget-deo-freebies .entry-item {
    transition: none;
  }
}


/* --- FINDING-007: Touch target sizing --- */

/* Navigation links — padding only, preserve existing display for ::after underline */
.nav__menu > li > a {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Footer links */
.footer .widget ul li a,
.footer__nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Social icons */
.footer .socials a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* --- Lazy image placeholder: light gray background while loading --- */
img[loading="lazy"] {
  background-color: #f3f4f6;
  transition: background-color 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  background-color: transparent;
}


/* --- FINDING-003 (partial): Hero CTA button enhancement --- */

/* Make hero View Themes / View Plugins links into prominent buttons */
.elementor-page-12742 .elementor-element-71aaf84 .elementor-button,
.elementor-page-12742 .elementor-element-1f8e73c .elementor-button {
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif !important;
  border-radius: 8px !important;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.elementor-page-12742 .elementor-element-71aaf84 .elementor-button:hover,
.elementor-page-12742 .elementor-element-1f8e73c .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Override the existing highlight background for headings */
h1 .highlight,
h2 .highlight,
.elementor-heading-title .highlight {
  background: none !important;
  -webkit-text-fill-color: inherit !important;
}


/* --- FINDING-002 (partial): Reduce AI slop feel on feature grid --- */

/* Make the "Reasons to Choose" section less symmetric/templated */
/* Left-align text instead of center */
.elementor-page-12742 .elementor-element-89eb988,
.elementor-page-12742 .elementor-element-20c3b28,
.elementor-page-12742 .elementor-element-5885e08,
.elementor-page-12742 .elementor-element-47fc851,
.elementor-page-12742 .elementor-element-efbb0a2,
.elementor-page-12742 .elementor-element-7e64096 {
  text-align: left !important;
}

.elementor-page-12742 .elementor-element-89eb988 .deo-icon-box,
.elementor-page-12742 .elementor-element-20c3b28 .deo-icon-box,
.elementor-page-12742 .elementor-element-5885e08 .deo-icon-box,
.elementor-page-12742 .elementor-element-47fc851 .deo-icon-box,
.elementor-page-12742 .elementor-element-efbb0a2 .deo-icon-box,
.elementor-page-12742 .elementor-element-7e64096 .deo-icon-box {
  text-align: left !important;
  align-items: flex-start !important;
}

/* Remove the colored circle around icons — use plain icons instead */
.elementor-page-12742 .deo-icon-box__icon-holder {
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  padding: 0 !important;
}

.elementor-page-12742 .deo-icon-box__icon-holder i {
  color: #2ABF77 !important;
  font-size: 28px !important;
}
