/* ============================================================
   CONSULTING R&D - PREMIUM VISUAL OVERHAUL v5.0
   TITAN corrections: CTA, hero, visual breaks, micro-interactions
   Deploy: 19/03/2026
   ============================================================ */

/* === ROOT DESIGN TOKENS === */
:root {
  --crd-primary: #0B2545;
  --crd-primary-light: #134074;
  --crd-primary-mid: #0F3460;
  --crd-accent: #E85D26;
  --crd-accent-hover: #D14D1A;
  --crd-accent-light: #FF7A45;
  --crd-accent-glow: rgba(232,93,38,0.15);
  --crd-accent-gradient: linear-gradient(135deg, #E85D26 0%, #FF7A45 100%);
  --crd-surface: #F8F9FC;
  --crd-surface-alt: #EEF1F6;
  --crd-surface-warm: #FFF8F5;
  --crd-dark: #0B2545;
  --crd-dark-2: #0E2E52;
  --crd-dark-3: #061526;
  --crd-text: #1A1A2E;
  --crd-text-muted: #5A6178;
  --crd-text-on-dark: #D8DEE9;
  --crd-white: #FFFFFF;
  --crd-border: rgba(11,37,69,0.08);
  --crd-border-accent: rgba(232,93,38,0.15);
  --crd-shadow-sm: 0 2px 8px rgba(11,37,69,0.06);
  --crd-shadow-card: 0 8px 32px rgba(11,37,69,0.10), 0 2px 8px rgba(11,37,69,0.05);
  --crd-shadow-card-hover: 0 20px 50px rgba(11,37,69,0.15), 0 8px 16px rgba(11,37,69,0.07);
  --crd-shadow-btn: 0 4px 16px rgba(232,93,38,0.40);
  --crd-shadow-btn-hover: 0 8px 28px rgba(232,93,38,0.50);
  --crd-shadow-hero: 0 4px 24px rgba(0,0,0,0.3);
  --crd-radius: 14px;
  --crd-radius-lg: 24px;
  --crd-radius-btn: 10px;
  --crd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --crd-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === GLOBAL RESET === */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--crd-text) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  background-color: var(--crd-white) !important;
  scroll-behavior: smooth !important;
}

/* === TYPOGRAPHY SYSTEM (v5: stronger hierarchy) === */
h1, .elementor-widget-heading h1.elementor-heading-title,
h1.elementor-heading-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.06 !important;
}

h2, .elementor-widget-heading h2.elementor-heading-title,
h2.elementor-heading-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.12 !important;
  margin-bottom: 24px !important;
  color: var(--crd-primary) !important;
}

h3, .elementor-widget-heading h3.elementor-heading-title,
h3.elementor-heading-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  letter-spacing: -0.015em !important;
  color: var(--crd-primary) !important;
}

/* v5: subtitle style for text after h2 */
h2 + .elementor-widget-text-editor p:first-child,
h2.elementor-heading-title + .elementor-widget-text-editor p:first-child {
  font-size: 1.15rem !important;
  color: var(--crd-text-muted) !important;
  max-width: 640px !important;
}

.elementor-widget-text-editor p,
.elementor-widget-text-editor {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: var(--crd-text-muted) !important;
}

/* === HERO SECTION (v5: more dramatic) === */
.elementor-element[data-element_type="section"]:first-child,
.elementor-section-wrap > .elementor-section:first-child,
.elementor-top-section:first-child,
[data-elementor-type="wp-page"] > .elementor-section:first-child,
[data-elementor-type="wp-page"] > .elementor-element:first-child {
  background: linear-gradient(145deg, #030D1A 0%, #0B2545 30%, #134074 65%, #1B5299 100%) !important;
  padding: 100px 0 90px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* v5: animated gradient overlay */
.elementor-section-wrap > .elementor-section:first-child::before,
[data-elementor-type="wp-page"] > .elementor-section:first-child::before,
[data-elementor-type="wp-page"] > .elementor-element:first-child::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232,93,38,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(19,64,116,0.25) 0%, transparent 60%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* v5: bottom fade */
.elementor-section-wrap > .elementor-section:first-child::after,
[data-elementor-type="wp-page"] > .elementor-section:first-child::after,
[data-elementor-type="wp-page"] > .elementor-element:first-child::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  right: 0 !important;
  height: 100px !important;
  background: linear-gradient(to top, var(--crd-white), transparent) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* v5: geometric accent shape */
.elementor-section-wrap > .elementor-section:first-child .elementor-container,
[data-elementor-type="wp-page"] > .elementor-section:first-child .elementor-container,
[data-elementor-type="wp-page"] > .elementor-element:first-child .elementor-container {
  position: relative !important;
  z-index: 2 !important;
}

/* Hero text - v5: larger, more impact */
.elementor-section-wrap > .elementor-section:first-child h1,
.elementor-section-wrap > .elementor-section:first-child .elementor-heading-title,
[data-elementor-type="wp-page"] > .elementor-section:first-child h1,
[data-elementor-type="wp-page"] > .elementor-element:first-child h1,
[data-elementor-type="wp-page"] > .elementor-section:first-child h1.elementor-heading-title,
[data-elementor-type="wp-page"] > .elementor-element:first-child h1.elementor-heading-title {
  color: #FFFFFF !important;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem) !important;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
  max-width: 720px !important;
  line-height: 1.05 !important;
}

.elementor-section-wrap > .elementor-section:first-child p,
.elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor,
.elementor-section-wrap > .elementor-section:first-child .elementor-widget-text-editor p,
[data-elementor-type="wp-page"] > .elementor-section:first-child p,
[data-elementor-type="wp-page"] > .elementor-element:first-child p,
[data-elementor-type="wp-page"] > .elementor-section:first-child .elementor-widget-text-editor p,
[data-elementor-type="wp-page"] > .elementor-element:first-child .elementor-widget-text-editor p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1.15rem !important;
  max-width: 560px !important;
  line-height: 1.7 !important;
}

/* Hero H2 */
.elementor-section-wrap > .elementor-section:first-child h2,
[data-elementor-type="wp-page"] > .elementor-section:first-child h2,
[data-elementor-type="wp-page"] > .elementor-element:first-child h2 {
  color: #FFFFFF !important;
}

/* === SECTIONS SPACING === */
.elementor-section,
.elementor-top-section {
  padding: 80px 0 !important;
  position: relative !important;
}

.elementor-section .elementor-container {
  max-width: 1200px !important;
}

/* === SECTION ALTERNATION (v5: more variety) === */
/* White sections */
.elementor-top-section:nth-child(odd) {
  background-color: var(--crd-white) !important;
}

/* Light gray sections */
.elementor-top-section:nth-child(even) {
  background-color: var(--crd-surface) !important;
}

/* v5: Every 5th section gets a warm accent background */
.elementor-top-section:nth-child(5n+3):not(:first-child) {
  background: linear-gradient(180deg, var(--crd-surface-warm) 0%, #FFF3ED 100%) !important;
}

/* v5: Dark themed section every 7th (gives visual break) */
.elementor-top-section:nth-child(7n+5):not(:first-child) {
  background: linear-gradient(180deg, var(--crd-dark) 0%, var(--crd-dark-3) 100%) !important;
}

.elementor-top-section:nth-child(7n+5):not(:first-child) h2,
.elementor-top-section:nth-child(7n+5):not(:first-child) h3,
.elementor-top-section:nth-child(7n+5):not(:first-child) .elementor-heading-title {
  color: var(--crd-white) !important;
}

.elementor-top-section:nth-child(7n+5):not(:first-child) p,
.elementor-top-section:nth-child(7n+5):not(:first-child) .elementor-widget-text-editor,
.elementor-top-section:nth-child(7n+5):not(:first-child) .elementor-widget-text-editor p,
.elementor-top-section:nth-child(7n+5):not(:first-child) .elementor-icon-list-text {
  color: var(--crd-text-on-dark) !important;
}

.elementor-top-section:nth-child(7n+5):not(:first-child) .elementor-widget-wrap,
.elementor-top-section:nth-child(7n+5):not(:first-child) .elementor-element-populated {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* === CARD SYSTEM (v5: enhanced hover) === */
.elementor-row > .elementor-column:not(:only-child) > .elementor-widget-wrap,
.elementor-row > .elementor-column:not(:only-child) > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-container > .elementor-column:not(:only-child) > .elementor-element-populated {
  background: var(--crd-white) !important;
  border-radius: var(--crd-radius) !important;
  padding: 40px 32px !important;
  box-shadow: var(--crd-shadow-card) !important;
  border: 1px solid var(--crd-border) !important;
  transition: transform 0.4s var(--crd-ease), box-shadow 0.4s var(--crd-ease), border-color 0.4s var(--crd-ease) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* v5: Card hover - stronger lift + accent border */
.elementor-row > .elementor-column:not(:only-child):hover > .elementor-widget-wrap,
.elementor-row > .elementor-column:not(:only-child):hover > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-container > .elementor-column:not(:only-child):hover > .elementor-element-populated {
  transform: translateY(-8px) !important;
  box-shadow: var(--crd-shadow-card-hover) !important;
  border-color: var(--crd-border-accent) !important;
}

/* v5: Card top accent bar - gradient, always visible but subtle */
.elementor-row > .elementor-column:not(:only-child) > .elementor-widget-wrap::before,
.elementor-row > .elementor-column:not(:only-child) > .elementor-column-wrap > .elementor-widget-wrap::before,
.elementor-container > .elementor-column:not(:only-child) > .elementor-element-populated::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--crd-accent-gradient) !important;
  opacity: 0.4 !important;
  transition: opacity 0.4s var(--crd-ease), height 0.4s var(--crd-ease) !important;
}

.elementor-row > .elementor-column:not(:only-child):hover > .elementor-widget-wrap::before,
.elementor-row > .elementor-column:not(:only-child):hover > .elementor-column-wrap > .elementor-widget-wrap::before,
.elementor-container > .elementor-column:not(:only-child):hover > .elementor-element-populated::before {
  opacity: 1 !important;
  height: 4px !important;
}

/* Column gap */
.elementor-row {
  gap: 28px !important;
}

/* NO cards on hero */
.elementor-section-wrap > .elementor-section:first-child .elementor-widget-wrap,
.elementor-section-wrap > .elementor-section:first-child .elementor-element-populated,
[data-elementor-type="wp-page"] > .elementor-section:first-child .elementor-widget-wrap,
[data-elementor-type="wp-page"] > .elementor-element:first-child .elementor-widget-wrap,
[data-elementor-type="wp-page"] > .elementor-section:first-child .elementor-element-populated,
[data-elementor-type="wp-page"] > .elementor-element:first-child .elementor-element-populated {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.elementor-section-wrap > .elementor-section:first-child .elementor-widget-wrap::before,
.elementor-section-wrap > .elementor-section:first-child .elementor-element-populated::before,
[data-elementor-type="wp-page"] > .elementor-section:first-child .elementor-widget-wrap::before,
[data-elementor-type="wp-page"] > .elementor-element:first-child .elementor-widget-wrap::before,
[data-elementor-type="wp-page"] > .elementor-section:first-child .elementor-element-populated::before,
[data-elementor-type="wp-page"] > .elementor-element:first-child .elementor-element-populated::before {
  display: none !important;
}

/* NO cards on sections with inline dark background */
.elementor-section[style*="background"] .elementor-widget-wrap,
.elementor-section[style*="background"] .elementor-element-populated {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.elementor-section[style*="background"] .elementor-widget-wrap::before,
.elementor-section[style*="background"] .elementor-element-populated::before {
  display: none !important;
}

/* Single-column sections - no cards */
.elementor-row > .elementor-column:only-child > .elementor-widget-wrap,
.elementor-row > .elementor-column:only-child > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-container > .elementor-column:only-child > .elementor-element-populated {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.elementor-row > .elementor-column:only-child > .elementor-widget-wrap::before,
.elementor-row > .elementor-column:only-child > .elementor-column-wrap > .elementor-widget-wrap::before,
.elementor-container > .elementor-column:only-child > .elementor-element-populated::before {
  display: none !important;
}

/* === BUTTONS / CTA (v5: MUCH stronger contrast) === */
.elementor-button,
.elementor-button-link,
a.elementor-button,
.wp-block-button__link {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 18px 40px !important;
  border-radius: var(--crd-radius-btn) !important;
  background: var(--crd-accent-gradient) !important;
  color: var(--crd-white) !important;
  border: none !important;
  box-shadow: var(--crd-shadow-btn) !important;
  transition: all 0.35s var(--crd-ease) !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
}

/* v5: CTA shimmer effect on hover */
.elementor-button::after,
a.elementor-button::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
  transition: left 0.6s var(--crd-ease) !important;
  pointer-events: none !important;
}

.elementor-button:hover,
.elementor-button-link:hover,
a.elementor-button:hover {
  background: linear-gradient(135deg, var(--crd-accent-hover) 0%, var(--crd-accent) 100%) !important;
  box-shadow: var(--crd-shadow-btn-hover) !important;
  transform: translateY(-3px) !important;
}

.elementor-button:hover::after,
a.elementor-button:hover::after {
  left: 100% !important;
}

/* v5: CTA active press */
.elementor-button:active,
a.elementor-button:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: var(--crd-shadow-btn) !important;
}

/* Ghost button variant */
.elementor-section-wrap > .elementor-section:first-child .elementor-button:not(:first-of-type),
.elementor-section[style*="background"] .elementor-button:not(:first-of-type) {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.35) !important;
  box-shadow: none !important;
}

.elementor-section-wrap > .elementor-section:first-child .elementor-button:not(:first-of-type):hover {
  border-color: rgba(255,255,255,0.8) !important;
  background: rgba(255,255,255,0.1) !important;
}

/* === HEADER === */
.site-header,
header#masthead,
#masthead {
  background: var(--crd-white) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  position: relative !important;
  z-index: 100 !important;
}

.main-navigation a,
.menu a {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: var(--crd-text) !important;
  transition: color 0.25s !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--crd-accent) !important;
}

/* Header CTA - v5: gradient */
.main-navigation .menu-item:last-child > a,
.menu .menu-item:last-child > a {
  background: var(--crd-accent-gradient) !important;
  color: var(--crd-white) !important;
  padding: 11px 24px !important;
  border-radius: var(--crd-radius-btn) !important;
  font-weight: 700 !important;
  box-shadow: var(--crd-shadow-btn) !important;
  transition: all 0.3s var(--crd-ease) !important;
}

.main-navigation .menu-item:last-child > a:hover,
.menu .menu-item:last-child > a:hover {
  background: linear-gradient(135deg, var(--crd-accent-hover) 0%, var(--crd-accent) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--crd-shadow-btn-hover) !important;
}

/* === ICONS (v5: better hover) === */
.elementor-icon i,
.elementor-icon svg,
.elementor-icon-list-icon i,
.elementor-icon-list-icon svg {
  color: var(--crd-accent) !important;
  fill: var(--crd-accent) !important;
}

.elementor-icon-box-icon .elementor-icon {
  background: var(--crd-accent-glow) !important;
  border-radius: var(--crd-radius) !important;
  width: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.4s var(--crd-ease-bounce), background 0.4s var(--crd-ease) !important;
}

/* v5: icon hover with bounce */
.elementor-icon-box-wrapper:hover .elementor-icon-box-icon .elementor-icon {
  transform: scale(1.12) rotate(-3deg) !important;
  background: rgba(232,93,38,0.22) !important;
}

/* === COUNTERS / STATS (v5: gradient numbers) === */
.elementor-counter-number-wrapper {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 3rem !important;
  background: var(--crd-accent-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: -0.02em !important;
}

.elementor-counter-title {
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--crd-text-muted) !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
}

/* === TESTIMONIALS (v5: quote accent) === */
.elementor-testimonial-wrapper,
.elementor-widget-testimonial .elementor-testimonial-content {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  font-style: italic !important;
  position: relative !important;
  padding-left: 24px !important;
  border-left: 3px solid var(--crd-accent) !important;
}

/* === FAQ / ACCORDION (v5: smoother) === */
.elementor-accordion-item {
  border: 1px solid var(--crd-border) !important;
  border-radius: var(--crd-radius) !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  transition: box-shadow 0.35s var(--crd-ease), border-color 0.35s var(--crd-ease) !important;
}

.elementor-accordion-item:hover {
  box-shadow: var(--crd-shadow-card) !important;
  border-color: var(--crd-border-accent) !important;
}

.elementor-tab-title {
  padding: 22px 28px !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: color 0.3s !important;
}

.elementor-tab-title:hover {
  color: var(--crd-accent) !important;
}

.elementor-tab-content {
  padding: 0 28px 22px !important;
  line-height: 1.7 !important;
}

/* === FOOTER (v5: premium gradient) === */
.site-footer,
footer.site-info,
#colophon {
  background: linear-gradient(175deg, var(--crd-dark) 0%, var(--crd-dark-3) 60%, #020A14 100%) !important;
  color: var(--crd-text-on-dark) !important;
  padding-top: 70px !important;
  position: relative !important;
}

/* v5: footer top accent line */
.site-footer::before,
footer.site-info::before,
#colophon::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--crd-accent-gradient) !important;
}

.site-footer a {
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.25s !important;
}

.site-footer a:hover {
  color: var(--crd-accent-light) !important;
}

.site-footer .widget-title,
.site-footer h3 {
  color: var(--crd-white) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 20px !important;
}

/* === FORM STYLING (v5: focus glow) === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  border: 1.5px solid rgba(11,37,69,0.12) !important;
  border-radius: var(--crd-radius-btn) !important;
  padding: 16px 20px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  background: var(--crd-white) !important;
  transition: border-color 0.3s var(--crd-ease), box-shadow 0.3s var(--crd-ease) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--crd-accent) !important;
  box-shadow: 0 0 0 4px var(--crd-accent-glow) !important;
  outline: none !important;
}

label {
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  margin-bottom: 8px !important;
  display: block !important;
  color: var(--crd-text) !important;
}

/* === IMAGES (v5: subtle hover) === */
.elementor-widget-image img {
  border-radius: var(--crd-radius) !important;
  transition: transform 0.5s var(--crd-ease), box-shadow 0.5s var(--crd-ease) !important;
}

.elementor-widget-image:hover img {
  transform: scale(1.02) !important;
  box-shadow: var(--crd-shadow-card) !important;
}

/* === SCROLL ANIMATIONS - FAILSAFE ===
   CRITICAL: Default state is VISIBLE. JS adds .crd-hidden first,
   then IntersectionObserver adds .crd-show to reveal.
   If JS fails, content stays visible. */
.crd-hidden {
  opacity: 0;
  transform: translateY(30px);
}
.crd-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.7s var(--crd-ease), transform 0.7s var(--crd-ease) !important;
}
.crd-show.crd-d1 { transition-delay: 0.12s !important; }
.crd-show.crd-d2 { transition-delay: 0.24s !important; }
.crd-show.crd-d3 { transition-delay: 0.36s !important; }

@media (prefers-reduced-motion: reduce) {
  .crd-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
  .crd-show {
    transition: none !important;
  }
}

/* === SECTION DIVIDERS (v5: more visible) === */
.elementor-top-section:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11,37,69,0.08), transparent);
}

.elementor-top-section[style*="background"]::before,
.elementor-top-section:first-child::before,
.elementor-top-section:nth-child(even)::before,
.elementor-top-section:nth-child(7n+5)::before {
  display: none;
}

/* === H2 SECTION ACCENT (v5: wider, gradient) === */
.elementor-column:only-child h2.elementor-heading-title {
  position: relative;
  padding-bottom: 20px;
}

.elementor-column:only-child h2.elementor-heading-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--crd-accent-gradient);
  border-radius: 2px;
}

.elementor-widget-heading[style*="text-align: center"] h2.elementor-heading-title::after,
.elementor-widget-heading[style*="center"] h2.elementor-heading-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* === ICON LIST ITEMS (v5: better spacing) === */
.elementor-icon-list-items .elementor-icon-list-item {
  padding: 8px 0 !important;
  transition: transform 0.3s var(--crd-ease) !important;
}

.elementor-icon-list-items .elementor-icon-list-item:hover {
  transform: translateX(4px) !important;
}

/* === LINK STYLING (v5: animated underline) === */
.elementor-widget-text-editor a {
  color: var(--crd-accent) !important;
  text-decoration: none !important;
  background-image: linear-gradient(var(--crd-accent), var(--crd-accent)) !important;
  background-size: 0% 2px !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat !important;
  transition: background-size 0.4s var(--crd-ease), color 0.3s !important;
  padding-bottom: 2px !important;
}

.elementor-widget-text-editor a:hover {
  color: var(--crd-accent-hover) !important;
  background-size: 100% 2px !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--crd-surface); }
::-webkit-scrollbar-thumb { background: var(--crd-primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--crd-primary); }

/* === SELECTION === */
::selection {
  background: var(--crd-accent);
  color: var(--crd-white);
}

/* === DARK SECTION TEXT (inline styles) === */
.elementor-section[style*="background-color"] h2,
.elementor-section[style*="background-color"] h3,
.elementor-section[style*="background-color"] .elementor-heading-title {
  color: var(--crd-white) !important;
}

.elementor-section[style*="background-color"] p,
.elementor-section[style*="background-color"] .elementor-widget-text-editor,
.elementor-section[style*="background-color"] .elementor-widget-text-editor p,
.elementor-section[style*="background-color"] .elementor-icon-list-text {
  color: var(--crd-text-on-dark) !important;
}

/* === RESPONSIVE (v5: better mobile) === */
@media (max-width: 1024px) {
  .elementor-section,
  .elementor-top-section {
    padding: 60px 0 !important;
  }
}

@media (max-width: 767px) {
  .elementor-section,
  .elementor-top-section {
    padding: 48px 0 !important;
  }

  .elementor-element[data-element_type="section"]:first-child,
  .elementor-section-wrap > .elementor-section:first-child,
  .elementor-top-section:first-child,
  [data-elementor-type="wp-page"] > .elementor-section:first-child,
  [data-elementor-type="wp-page"] > .elementor-element:first-child {
    padding: 70px 0 60px !important;
  }

  h1, .elementor-heading-title[style*="size"] {
    font-size: 1.85rem !important;
  }

  h2, h2.elementor-heading-title {
    font-size: 1.5rem !important;
  }

  .elementor-button,
  a.elementor-button {
    width: 100% !important;
    text-align: center !important;
    padding: 16px 28px !important;
    margin-bottom: 10px !important;
    font-size: 1rem !important;
  }

  .elementor-row > .elementor-column:not(:only-child) > .elementor-widget-wrap,
  .elementor-row > .elementor-column:not(:only-child) > .elementor-column-wrap > .elementor-widget-wrap,
  .elementor-container > .elementor-column:not(:only-child) > .elementor-element-populated {
    margin-bottom: 16px !important;
    padding: 28px 22px !important;
  }

  .elementor-counter-number-wrapper {
    font-size: 2.2rem !important;
  }

  .elementor-row {
    gap: 16px !important;
  }
}

/* === PRINT === */
@media print {
  .crd-hidden { opacity: 1 !important; transform: none !important; }
  .elementor-button::after { display: none !important; }
}
