/* ==========================================================================
   WordPress / Elementor integration layer for the Ashraf Siddik design system.
   Neutralises Elementor container/widget spacing so each section renders
   exactly as in the static build, and offsets for the admin bar.
   ========================================================================== */

/* Section containers: no padding/gap/width limits — the section markup owns layout */
.e-con.as-sec,
.e-con.as-sec > .e-con-inner {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --content-width: 100%; --container-max-width: 100%; --width: 100%;
  padding: 0; gap: 0; max-width: none; min-height: 0;
}
.e-con.as-sec { display: block; }
.as-sec .elementor-widget,
.as-sec .elementor-widget-container,
.as-sec .elementor-widget-html { width: 100%; max-width: none; margin: 0; padding: 0; }
.elementor-widget:not(:last-child) { margin-block-end: 0; }

/* Elementor sets `.elementor img { border-radius:0; box-shadow:none }`; restore design treatments */
.elementor .work-card__media img { border-radius: calc(var(--radius) - 6px); box-shadow: 0 20px 40px -24px rgba(16, 24, 8, 0.45); }
.elementor .work-card__media--mockup img { border-radius: 0; box-shadow: none; }
.elementor .work-card__phone img { border-radius: 10px; }
.elementor .case-hero-media img { border-radius: var(--radius); }
.elementor .author-box img, .elementor .footer-id__avatar img { border-radius: 50%; }
.elementor .about-portrait img { border-radius: 0; }

/* Hello Elementor wrappers (theme CSS is disabled; keep them neutral) */
.site-main, .page-content { margin: 0; padding: 0; max-width: none; }
.site-main:focus { outline: none; }

/* Elementor removes link underlines (`.elementor a { text-decoration: none }`); restore the design's underlined links */
.elementor a { box-shadow: none; }
.elementor a.text-link, .elementor .prose a:not(.btn), .elementor .faq-item__answer a, .elementor .breadcrumbs a,
.elementor .fact-list a, .elementor .author-box a, .elementor .lead-form__privacy a, .elementor .lead-form__status a { text-decoration-line: underline; }
.elementor .prose .related-links a { text-decoration-line: none; }

/* Admin bar offsets (logged-in only) */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header, .admin-bar .mobile-menu { top: 46px; }
}

/* Elementor editor: keep fixed chrome from covering the canvas controls */
.elementor-editor-active .wa-float { display: none; }
