/* v20.2: components.css */
/* EMA20 v13: preserve Elementor menu's existing appearance while replacing its runtime handler. */
.ema20-independent-nav { position: relative; }
.ema20-independent-nav .ema20-menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  line-height: 1;
}
.ema20-independent-nav .ema20-menu-toggle:focus-visible,
.ema20-independent-nav .ema20-nav-menu a:focus-visible {
  outline: 2px solid #7a4297;
  outline-offset: 3px;
}
/* The existing Elementor CSS controls the mobile dropdown's opening animation. */
.ema20-independent-nav .ema20-nav-menu--dropdown[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.ema20-independent-nav .ema20-nav-menu--dropdown[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}
/* The 'Coming Soon' label is a noninteractive element, not a broken link. */
.ema20-content-card .elementskit-btn[aria-disabled="true"] {
  cursor: default;
}

/* EMA20 v15: progressive enhancement replacing Elementor scroll-reveal animations.
   Elements remain visible without JavaScript or with reduced motion. */
@keyframes ema20-v15-fade-in { from {opacity: 0; transform: translateY(5px)} to {opacity: 1; transform: translateY(0)} }
@media (prefers-reduced-motion: no-preference) {
  [data-ema20-reveal].ema20-reveal-active {animation: ema20-v15-fade-in 650ms ease-out both;}
}

/* v16: semantic landmarks and keyboard skip link; no design changes to the page sections. */
.ema20-skip-link {position:absolute;left:12px;top:-100px;z-index:100000;padding:10px 14px;background:#fff;color:#111;border:2px solid #111;border-radius:4px;font:600 15px/1.3 sans-serif;text-decoration:none;}
.ema20-skip-link:focus,.ema20-skip-link:focus-visible {top:12px;}

/* v20.2: layout.css */
/* EMA20 layout engine, v18: portable CSS Grid and reduced single-column markup. */
.ema20-grid-row{display:grid!important;align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr));}
.ema20-grid-row.ema20-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.ema20-grid-row.ema20-grid-2-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
.ema20-grid-row>.ema20-column{width:auto!important;min-width:0;}
.ema20-layout-single>.ema20-widget-group.ema20-has-content{padding:10px;min-width:0;}
.ema20-layout-single.ema20-column-gap-no>.ema20-widget-group.ema20-has-content{padding:0;}
@media(max-width:767px){.ema20-grid-row,.ema20-grid-row.ema20-grid-2,.ema20-grid-row.ema20-grid-2-1{grid-template-columns:minmax(0,1fr);}}

/* v20.2: ema20-menu-fix-v19.css */
/* EMA20 v19.1: explicit, page-independent mobile navigation state. */
@media (max-width: 1024px) {
  /* Keep dropdown above content sections, including project/gallery detail pages. */
  .ema20-site-header {
    position: relative;
    z-index: 1000;
  }
  .ema20-independent-nav {
    position: relative;
    z-index: 1001;
  }
  .ema20-independent-nav .ema20-nav-menu--dropdown.ema20-nav-menu__container {
    z-index: 10010;
    transform-origin: top center;
  }
  .ema20-independent-nav .ema20-menu-toggle[aria-expanded="false"] + .ema20-nav-menu--dropdown.ema20-nav-menu__container {
    max-height: 0 !important;
    transform: scaleY(0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
  .ema20-independent-nav .ema20-menu-toggle[aria-expanded="true"] + .ema20-nav-menu--dropdown.ema20-nav-menu__container {
    display: block !important;
    max-height: min(85vh, 85dvh) !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transition: none !important;
  }
}

/* v20.2: ema20-home-icons-v20-1.css */
/* EMA20 v20.1: embedded originals of the five homepage ElementsKit glyphs.
   These SVGs have no font/network dependency and cannot become missing-glyph boxes. */
.ema20-page-home .ema20-widget .elementskit-info-box-title > svg.ema20-feature-icon {
  --ema20-feature-size: 45px;
  display: inline-block;
  width: calc(var(--ema20-feature-size) * var(--ema20-feature-ratio));
  height: var(--ema20-feature-size);
  max-width: none !important; /* supersedes legacy Elementor 45px SVG cap */
  margin-right: 14px;
  padding: 0;
  position: relative;
  top: 2px;
  vertical-align: -3px;
  overflow: visible;
  color: #FE5D26;
  fill: currentColor;
}
@media (max-width:767px) {
  .ema20-page-home .ema20-widget .elementskit-info-box-title > svg.ema20-feature-icon {
    --ema20-feature-size: 50px;
  }
}
