/*
Theme Name: Hello Elementor Modern
Theme URI: https://eevaluare.ro/
Description: Modernizare vizuală non-invazivă peste Hello Elementor — fonturi Inter + Manrope, butoane premium, forme rafinate, header sticky, border-radius generos. NU modifică dimensiunile/layout-urile Elementor existente.
Author: eevaluare.ro
Author URI: https://eevaluare.ro/
Template: hello-elementor
Version: 3.1.0
Text Domain: hello-elementor-modern
*/

/* =================================================================
   DESIGN TOKENS
   ================================================================= */
:root {
  --em-brand-50:  #EEECFF;
  --em-brand-100: #DAD5FF;
  --em-brand-500: #251AFF;
  --em-brand-600: #1C14D6;
  --em-brand-700: #150FAB;

  --em-accent-500: #0EA5E9;

  --em-ink-100: #F1F5F9;
  --em-ink-200: #E2E8F0;
  --em-ink-300: #CBD5E1;
  --em-ink-500: #64748B;
  --em-ink-700: #334155;
  --em-ink-800: #1E293B;
  --em-ink-900: #0B1120;

  --em-radius-sm: 8px;
  --em-radius-md: 14px;
  --em-radius-lg: 20px;
  --em-radius-pill: 999px;

  --em-shadow-sm: 0 2px 6px rgba(11, 17, 32, 0.06), 0 1px 2px rgba(11, 17, 32, 0.04);
  --em-shadow-md: 0 10px 24px -8px rgba(11, 17, 32, 0.14);
  --em-shadow-lg: 0 24px 48px -16px rgba(11, 17, 32, 0.20);
  --em-shadow-brand: 0 14px 32px -12px rgba(37, 26, 255, 0.40);

  --em-font-sans: "Inter", "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --em-font-display: "Manrope", "ManropeVariable", "Inter", system-ui, sans-serif;

  --em-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --em-t: 220ms var(--em-ease);
}

/* =================================================================
   TIPOGRAFIE — doar fonturi. NU schimbăm dimensiuni, NU schimbăm
   culori (păstrăm contrast original din Elementor Kit).
   ================================================================= */
html body.em-modern,
html body.em-modern p,
html body.em-modern li,
html body.em-modern .elementor-widget-text-editor {
  font-family: var(--em-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

html body.em-modern h1,
html body.em-modern h2,
html body.em-modern h3,
html body.em-modern h4,
html body.em-modern h5,
html body.em-modern h6,
html body.em-modern .elementor-heading-title {
  font-family: var(--em-font-display);
  letter-spacing: -0.02em;
}

/* Selection */
::selection { background: var(--em-brand-500); color: #fff; }

/* =================================================================
   BUTTONS — singurul loc unde forțăm ceva vizibil (pill + gradient)
   ================================================================= */
html body.em-modern .elementor-button,
html body.em-modern .elementor-button-link,
html body.em-modern .hfe-button-wrapper a.hfe-button-link,
html body.em-modern .wp-block-button__link {
  font-family: var(--em-font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  border-radius: var(--em-radius-pill) !important;
  transition: transform var(--em-t), box-shadow var(--em-t), filter var(--em-t) !important;
  box-shadow: var(--em-shadow-brand) !important;
  border: none !important;
  background: linear-gradient(135deg, var(--em-brand-500) 0%, var(--em-brand-700) 100%) !important;
  color: #FFFFFF !important;
}

html body.em-modern .elementor-button:hover,
html body.em-modern .wp-block-button__link:hover,
html body.em-modern .hfe-button-wrapper a.hfe-button-link:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.08);
}

html body.em-modern .elementor-button:active {
  transform: translateY(0) !important;
}

/* =================================================================
   FORMS — border radius + focus ring, contrast safe
   ================================================================= */
html body.em-modern .wpforms-field input[type="text"],
html body.em-modern .wpforms-field input[type="email"],
html body.em-modern .wpforms-field input[type="tel"],
html body.em-modern .wpforms-field input[type="url"],
html body.em-modern .wpforms-field input[type="number"],
html body.em-modern .wpforms-field textarea,
html body.em-modern .wpforms-field select,
html body.em-modern .elementor-field-group input.elementor-field,
html body.em-modern .elementor-field-group textarea.elementor-field,
html body.em-modern .elementor-field-group select.elementor-field {
  border-radius: var(--em-radius-md) !important;
  border: 1.5px solid var(--em-ink-200) !important;
  font-family: var(--em-font-sans) !important;
  transition: border-color var(--em-t), box-shadow var(--em-t);
}

html body.em-modern .wpforms-field input:focus,
html body.em-modern .wpforms-field textarea:focus,
html body.em-modern .wpforms-field select:focus,
html body.em-modern .elementor-field:focus {
  outline: none !important;
  border-color: var(--em-brand-500) !important;
  box-shadow: 0 0 0 4px var(--em-brand-50) !important;
}

/* =================================================================
   IMAGES — border radius, NU schimbăm dimensiuni sau flex
   ================================================================= */
html body.em-modern .elementor-widget-image > .elementor-widget-container > img,
html body.em-modern .elementor-widget-image > .elementor-widget-container > a > img,
html body.em-modern .wp-block-image img {
  border-radius: var(--em-radius-md);
}

/* =================================================================
   HEADER — sticky + shadow light when scrolled. Zero forțări de fundal.
   ================================================================= */
html body.em-modern .hfe-header,
html body.em-modern header.site-header,
html body.em-modern .elementor-location-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  transition: box-shadow var(--em-t);
}

html body.em-modern.em-scrolled .hfe-header,
html body.em-modern.em-scrolled header.site-header,
html body.em-modern.em-scrolled .elementor-location-header {
  box-shadow: 0 6px 24px -12px rgba(11, 17, 32, 0.18);
}

/* =================================================================
   NAV MENU — PREMIUM: mai mare, pill hover, icon FA per item
   ================================================================= */
html body.em-modern .hfe-nav-menu .menu-item > a,
html body.em-modern .elementor-nav-menu .menu-item > a,
html body.em-modern .hfe-nav-menu > ul > li > a,
html body.em-modern .elementor-nav-menu > ul > li > a {
  font-family: var(--em-font-display) !important;
  font-size: 1.0625rem !important;  /* 17px */
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  padding: 0.75em 1.15em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55em !important;
  border-radius: var(--em-radius-pill) !important;
  transition: background var(--em-t), color var(--em-t), transform var(--em-t), box-shadow var(--em-t) !important;
  position: relative;
}

@media (min-width: 1024px) {
  html body.em-modern .hfe-nav-menu .menu-item > a,
  html body.em-modern .elementor-nav-menu .menu-item > a,
  html body.em-modern .hfe-nav-menu > ul > li > a,
  html body.em-modern .elementor-nav-menu > ul > li > a {
    font-size: 1.1875rem !important;  /* 19px */
    padding: 0.85em 1.3em !important;
  }
}

/* Icon per menu item — FontAwesome 6 Free Solid, inject via ::before */
html body.em-modern .hfe-nav-menu .menu-item > a::before,
html body.em-modern .elementor-nav-menu .menu-item > a::before,
html body.em-modern .hfe-nav-menu > ul > li > a::before,
html body.em-modern .elementor-nav-menu > ul > li > a::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 0.92em;
  width: 1.15em;
  text-align: center;
  display: inline-block;
  background: linear-gradient(135deg, var(--em-brand-500) 0%, var(--em-accent-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform var(--em-t);
  flex: none;
}

/* Map icon per menu-item ID (stable WP IDs on eevaluare.ro) */
html body.em-modern #menu-item-87  > a::before { content: "\f015"; } /* Acasa — home */
html body.em-modern #menu-item-86  > a::before { content: "\f05a"; } /* Despre noi — info */
html body.em-modern #menu-item-97  > a::before { content: "\f7d9"; } /* Servicii — tools */
html body.em-modern #menu-item-314 > a::before { content: "\f03e"; } /* Galerie — image */
html body.em-modern #menu-item-85  > a::before { content: "\f0e0"; } /* Contact — envelope */

/* Fallback: any menu item that doesn't match above gets a subtle dot */
html body.em-modern .menu-item-home > a::before { content: "\f015"; }

/* Hover state — pill with brand tint, dark text for contrast */
html body.em-modern .hfe-nav-menu .menu-item > a:hover,
html body.em-modern .elementor-nav-menu .menu-item > a:hover {
  background: linear-gradient(135deg, #EEECFF 0%, #E0F2FE 100%) !important;
  color: var(--em-brand-700) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(37, 26, 255, 0.3);
}

html body.em-modern .hfe-nav-menu .menu-item > a:hover::before,
html body.em-modern .elementor-nav-menu .menu-item > a:hover::before {
  transform: scale(1.15) rotate(-6deg);
}

/* Current page — solid brand gradient pill, white text */
html body.em-modern .hfe-nav-menu .menu-item.current-menu-item > a,
html body.em-modern .hfe-nav-menu .menu-item.current_page_item > a,
html body.em-modern .elementor-nav-menu .menu-item.current-menu-item > a,
html body.em-modern .elementor-nav-menu .menu-item.current_page_item > a {
  background: linear-gradient(135deg, var(--em-brand-500) 0%, var(--em-brand-700) 100%) !important;
  color: #FFFFFF !important;
  box-shadow: var(--em-shadow-brand) !important;
}

/* When current, icon becomes white too (override gradient-text trick) */
html body.em-modern .hfe-nav-menu .menu-item.current-menu-item > a::before,
html body.em-modern .hfe-nav-menu .menu-item.current_page_item > a::before,
html body.em-modern .elementor-nav-menu .menu-item.current-menu-item > a::before,
html body.em-modern .elementor-nav-menu .menu-item.current_page_item > a::before {
  background: none !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Mobile menu — keep icons but stack, remove pill width constraint */
@media (max-width: 1023px) {
  html body.em-modern .hfe-nav-menu .menu-item > a,
  html body.em-modern .elementor-nav-menu .menu-item > a {
    font-size: 1.125rem !important;
    justify-content: flex-start !important;
  }
}

/* =================================================================
   FOCUS — accessibility
   ================================================================= */
html body.em-modern *:focus-visible {
  outline: 3px solid var(--em-brand-500) !important;
  outline-offset: 3px !important;
  border-radius: var(--em-radius-sm);
}

/* =================================================================
   REDUCED MOTION — respect OS preference
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html body.em-modern *,
  html body.em-modern *::before,
  html body.em-modern *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
